What values are considered false?
Erik Max Francis
max at alcyone.com
Sun Feb 24 22:49:15 EST 2002
Zero wrote:
> In the strictest of definitions, a "function" that does not provide a
> return value is a "method"
No, a method is a function that's a part of a class (and has the
instance of the class passed in as the first argument). Perhaps you
meant "procedure," which is a common name for a function which has no
return value (i.e., a function which is called only for its side
effects), but still this distinction doesn't apply too well to Python
since _every_ function, whether it explicitly returns or not, returns a
value -- if it implicitly returns then the value returned is 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