[Python-Dev] Making None a keyword (original) (raw)

Barry A. Warsaw barry@zope.com
Fri, 26 Apr 2002 08:51:14 -0400


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

GvR> I just realized there's another use for None as an identifier
GvR> that is currently totally legal and which would become
GvR> illegal: it's conceivable that someone would use None as an
GvR> attribute name, e.g.

|     class C:
|         def None(self): pass

GvR>     C().None()

That reminds me, I wonder if we should dust off the old Jython idea of allowing keywords in locations where their non-keywordness is obvious?

C().print()-ly y'rs, -Barry