A Joke In the Python Interpreter

    >>> 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

2 Responses to “A Joke In the Python Interpreter”

  1. Doug Napoleone writes:

    ‘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.

  2. Steve Holden writes:

    Doug, you have no romance in your soul!

Leave a Reply