[Python-Dev] Assignment to None

Guido van Rossum guido at python.org
Fri Jul 16 04:37:09 CEST 2004


> >>> None = 0
> SyntaxError: assignment to None (<pyshell#0>, line 1)
> >>> def f():
>             None = 0
>             
> SyntaxError: assignment to None (<pyshell#2>, line 2)
>  
> Does this imply that the compiler can now treat None as a constant?

I'd hope so!

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list