Message177027
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 |
|
Date |
User |
Action |
Args |
2012-12-06 04:17:13 | ncoghlan | set | recipients:
+ 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:13 | ncoghlan | set | messageid: <1354767433.27.0.103075776427.issue16619@psf.upfronthosting.co.za> |
2012-12-06 04:17:13 | ncoghlan | link | issue16619 messages |
2012-12-06 04:17:12 | ncoghlan | create | |
|