[Python-Dev] Assignment to None (original) (raw)
Guido van Rossum guido at python.org
Fri Jul 16 04:37:09 CEST 2004
- Previous message: [Python-Dev] Assignment to None
- Next message: [Python-Dev] Assignment to None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>> 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/)
- Previous message: [Python-Dev] Assignment to None
- Next message: [Python-Dev] Assignment to None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]