Author ncoghlan
Recipients DragonFireCK, Horpner, alex, benjamin.peterson, brett.cannon, bruno.dupuis, cvrebert, georg.brandl, ikelly, meador.inge, mrabarnett, ncoghlan, python-dev, steven.daprano, terry.reedy
Date 2012-12-06.04:17:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354767433.27.0.103075776427.issue16619@psf.upfronthosting.co.za>
In-reply-to
Content
The difference in the errors below is the reason the systematic fix in Benjamin's patch simply wasn't practical in 2.x (as it would have required a complex deprecation dance to turn None, True and False into real keywords):

Python 2.7.3 (default, Jul 24 2012, 10:05:38) 
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class C: pass
... 
>>> C.None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: class C has no attribute 'None'
>>> 

Python 3.2.3 (default, Jun  8 2012, 05:36:09) 
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class C: pass
... 
>>> C.None
  File "<stdin>", line 1
    C.None
         ^
SyntaxError: invalid syntax
History
Date User Action Args
2012-12-06 04:17:13ncoghlansetrecipients: + ncoghlan, brett.cannon, georg.brandl, terry.reedy, ikelly, Horpner, benjamin.peterson, mrabarnett, steven.daprano, alex, cvrebert, meador.inge, python-dev, DragonFireCK, bruno.dupuis
2012-12-06 04:17:13ncoghlansetmessageid: <1354767433.27.0.103075776427.issue16619@psf.upfronthosting.co.za>
2012-12-06 04:17:13ncoghlanlinkissue16619 messages
2012-12-06 04:17:12ncoghlancreate