[Python-Dev] trunk-math

Nick Coghlan ncoghlan at gmail.com
Sat Feb 16 11:18:23 CET 2008


Mark Dickinson wrote:
> * There's a per-thread state for division operator. In IEEE 754 mode 
> 1./0. and 1.%0. return INF and 0./0. NAN. The contextlib has a new 
> context "ieee754" and the math lib set_ieee754/get_ieee754 (XXX better 
> place for the functions?)

I would put the context manager in the math module as well. contextlib 
is intended for generic context related tools (like nested() and 
closing() that don't have a more topical home.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list