On Mar 21, 2010, at 3:59 PM, Steven D'Aprano wrote:

> On Mon, 22 Mar 2010 06:31:57 am Raymond Hettinger wrote:
>> I really like Guido's idea of a context flag to control whether
>> mixing of decimal and binary floats will issue a warning.
>> The default should be to issue the warning (because unless
>> you know what you're doing, it is most likely an error).
> 
> When you say "warning", do you mean warning.warn(), or an exception?


I'm not sure I understand your question.  I did mean warnings.warn().
But that does raise a catchable exception or it can be suppressed
through the warnings module.  It should probably be set to 
warn no more than once.


Raymond
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to