The Samurai Principle

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Sep 10 20:16:08 EDT 2010


On 2010年9月11日 10:17:21 +1200, Lawrence D'Oliveiro wrote:
> In message <mailman.567.1283927599.29448.python-list at 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


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /