A Joke In the Python Interpreter
Monday, 21 May 2007
>>> import this
...
>>> love = this
>>> this is love
True
>>> love is True
False
>>> love is False
False
>>> love is not True or False
True
>>> love is not True or False; love is love
True
True
But where?
Source: http://mail.python.org/pipermail/python-list/2003-October/229829.html
No. 1 — May 21st, 2007 at 10:54 am
‘this’ is just a python module in the standard library.
In truth, ANY module will work.
import re;
this = love = re
Will work as well.
The this module is ‘c:\python25\lib\this.py’ on my windows install.
It contains Tim Peters ‘Zen of Python’ encoded in ROT13 with the python code to decode and print it on import.
No. 2 — May 22nd, 2007 at 7:34 am
Doug, you have no romance in your soul!