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

> In message <mailman.567.1283927599.29448.python-l...@python.org>, 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.

-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to