shortest python quine?

wim picture wim · Jun 3, 2011 · Viewed 27.6k times · Source
_='_=%r;print _%%_';print _%_

Is this the shortest possible python quine, or can it be done better? This one seems to improve on all the entries on The Quine Page.

I'm not counting the trivial 'empty' program, and I'm not counting Terry Reedy's submission which is sus because of the double quotes (if that's allowed, is "hello world" a quine? or "'" for that matter?)

Answer

Beurtschipper picture Beurtschipper · Jul 30, 2015

I'm just going to leave this here (save as exceptionQuine.py):

    File "exceptionQuine.py", line 1
        File "exceptionQuine.py", line 1
        ^
IndentationError: unexpected indent