How "return" no return ?
Corrado Gioannini
gioco at nekhem.com
Thu May 12 11:57:12 EDT 2005
On Thu, May 12, 2005 at 04:42:34PM +0100, Tim Williams wrote:
> Just don't use a return statement at all, or do something like
>
> [function body]
> if not val = None:
> return val
> [end of function]
i didn't understood that.
if you don't return nothing explicitly the function returns None.
(or am i wrong?)
c.
--
Hi, I'm a .signature virus! Copy me to your .signature file and
help me propagate, thanks!
More information about the Python-list
mailing list