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

> On Jul 15, 10:28 am, Teemu Likonen <tliko...@iki.fi> 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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to