None versus MISSING sentinel -- request for design feedback

Teemu Likonen tlikonen at
Fri Jul 15 12:56:30 CEST 2011

* 2011-07-15T03:02:11-07:00 * bruno wrote:

> On Jul 15, 10:28 am, Teemu Likonen <tliko... at> wrote:
>> How about accepting anything but ignoring all non-numbers?
> Totally unpythonic. Better to be explicit about what you expect and
> crash as loudly as possible when you get anything unexpected.

Sure, but sometimes an API can be "accept anything" if any kind of trash
is expected. But it seems that not in this case, so you're right.

More information about the Python-list mailing list