[Python-Dev] Assignment to None

Raymond Hettinger raymond.hettinger at verizon.net
Thu Jul 15 10:35:34 CEST 2004


Python 2.4a1+ (#46, Jul 14 2004, 04:25:40) [MSC v.1200 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.   
IDLE 1.1a2      
>>> None = 0
SyntaxError: assignment to None (<pyshell#0>, line 1)
>>> def f():
            None = 0
            
SyntaxError: assignment to None (<pyshell#2>, line 2)
 
 
Do this imply that the compiler can now treat None as a constant?
 
 
Raymond Hettinger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20040715/7ffcad0d/attachment.htm


More information about the Python-Dev mailing list