The Samurai Principle

Steven D'Aprano steve at
Sat Sep 11 02:16:08 CEST 2010

On Sat, 11 Sep 2010 10:17:21 +1200, Lawrence D'Oliveiro wrote:

> In message <mailman.567.1283927599.29448.python-list at>, Ian
> Kelly wrote:
>> And returning None on failure is dangerous, because if the programmer
>> does not take care to handle that case, the program may attempt to
>> regard it as actual data.
> But None *is* actual data.

Of course it is. Which makes it hard to distinguish None used as data 
from None used as a signal for an exceptional case.


More information about the Python-list mailing list