[Python-Dev] Making None a keyword

Barry A. Warsaw barry@zope.com
Thu, 25 Apr 2002 23:30:08 -0400


>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    GvR> I'd like to make None a keyword.

Now, how did I know you were going to want to do that?  From
python-mode.el (for font-locking):

     ;; pseudo-keywords
     '("\\b\\(self\\|None\\|True\\|False\\|Ellipsis\\)\\b"

I swear I filled the time machine's tank when I was done with it.

+1 BTW.

>>>>> "JH" == Jeremy Hylton <jeremy@zope.com> writes:

    JH> What about True and False?

    GvR> Maybe in Python 3.0.  Old code could define these as
    GvR> variables and we don't want to break that.  (I have no mercy
    GvR> for old code that defines None, but True and False are a
    GvR> difference case. :-)

Ellipsis then?  It's probably used /much/ less than None, but still.

-Barry