Why return None?

Paul Rubin http
Thu Aug 26 10:51:14 CEST 2004

aleaxit at yahoo.com (Alex Martelli) writes:
> There should be one-- and preferably only one --obvious way to do it.
> Not leaving stylistic choice (which would lead to more than one obvious
> way to do it) is quite consonant with the Zen of Python.

Well, what you're left with is that doing it the one obvious way
doesn't work, and you have to do it in some contorted way instead.

More information about the Python-list mailing list