What values are considered false?
Erik Max Francis
max at alcyone.com
Thu Feb 21 15:22:00 EST 2002
Andrew Dalke wrote:
> Not quite. You called the fuction 'foo', which doesn't
> define a return value so the value None is used instead.
> To compare the function to None, do
>
> foo is None
>
> and you'll get 0.
Which really shouldn't be surprising, since a function that doesn't do
anything except return None is not the same thing as None.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Laws are silent in time of war.
\__/ Cicero
Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
An Esperanto reference for English speakers.
More information about the Python-list
mailing list