None, False, True

Gregor Lingl glingl at aon.at
Wed Sep 17 23:05:55 CEST 2003


Gregor Lingl schrieb:

....

> 
> Interestingly this doesn't occur in IDLE:
> 
> Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on 
> win32
> Type "copyright", "credits" or "license()" for more information.
> ...
> IDLE 1.0
>  >>> None = 3
> SyntaxError: assignment to None (<pyshell#0>, line 1)
>  >>> print None
> None

remark:

If you run the script:

None = 3
print None


within IDLE, it does NOT issue a syntax error,
but prints 3 (i. e. it works like the plain python interpreter)

Gregor





More information about the Python-list mailing list