This question already has an answer here:
- Golf you a quine for great good! 331 answers
I wrote this one-line one-statement Python quine a little while back.
print (lambda x: x + str((x,)))('print (lambda x: x + str((x,)))',)
The point is, it's all one line, and one function (i.e. no semicolons). Does anyone have a shorter one like this?
Note: of course there's the empty file, but that's not what I mean. And, no reading the source file either, &c. Also, just to say explicitly, a quine of the type
r='r=%r;print r%%r';print r%r from The Quine Page is multiple statements, so while it's cool, it isn't what I'm talking about here. (: