return None
Fuzzyman
fuzzyman at gmail.com
Sat Jul 23 03:23:43 EDT 2005
Grant Edwards wrote:
[snip..]
> Personally, I don't really like the idea that falling off the
> botton of a function implicitly returns None. It's just not
> explicit enough for me. My preference would be that if the
> function didn't execute a "return" statement, then it didn't
> return anyting and attempting to use a return value would be an
> error.
>
> I suppose there probably is code out there that depends on the
> implicit "return None" at the end of every function, so it's
> too late to change things now.
>
Yeah - I frequently rely on that behaviour, but purely our of laziness.
Best Regards,
Fuzzy
http://www.voidspace.org.uk/python
> --
> Grant Edwards grante Yow! Is it FUN to be
> at a MIDGET?
> visi.com
More information about the Python-list
mailing list