None, False, True

anton muhin antonmuhin.REMOVE.ME.FOR.REAL.MAIL at rambler.ru
Tue Sep 16 15:00:45 EDT 2003


Indigo Moon Man wrote:

> M-a-S <NO-MAIL at hotmail.com> spake thusly:
> 
>>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)
> 
> 
> http://www.ibiblio.org/obp/thinkCSpy/chap05.htm
> 
> In section 5.9 (Glossary) near the bottom of the link above I found this
> entry for None...
> 
> None
> A special Python value returned by functions that have no
> return statement, or a return statement without an argument.
> 
> Maybe that has something to do with it.
> 

Defenitely. If I remember it right, None is going to be promoted into 
keywords soon. Therefore the warning.

hth,
anton.





More information about the Python-list mailing list