None, False, True
Max M
maxm at mxm.dk
Tue Sep 16 15:04:50 EDT 2003
M-a-S wrote:
> Can anybody explain this:
>
> Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>None = 3
>
> <stdin>:1: SyntaxWarning: assignment to None
>
>>>>False = 4
>>>>True = 5
>>>>
>>>>None, False, True
>
> (3, 4, 5)
Yes. You assign new values to the objects None, False and True. You then
print out those values in a tuple.
What's not to understand?
But for others reading your programme you might be better of to keep
them their normal values.
regards Max M
More information about the Python-list
mailing list