Python self-evaluating strings

Ant antroy at gmail.com
Tue Jan 29 05:00:13 EST 2008


In the spirit of "Simple is better than complex." and totally
bypassing the intention of quines (though not necessarily the
definition):

--- probably_not_a_real_quine.py  ----
import sys

for line in open(sys.argv[0]):
    print line,

--------------------------------------
;-)

--
Ant.



More information about the Python-list mailing list