[issue23595] Split the math module into _math (C) + math (py)
STINNER Victor
report at bugs.python.org
Fri Mar 6 12:17:27 CET 2015
STINNER Victor added the comment:
> > Didn't Guido veto the idea of math.py?
> It looks like it: https://mail.python.org/pipermail/python-dev/2015-March/138616.html
Ah. I missed this email.
So what do you think of my patch? Does it make sense to provide math.py?
--
For math.py without _math: isnan(), isfinite(), etc. can be implemented in pure Python using the struct module. See for example the old fpconst module:
https://pypi.python.org/pypi/fpconst
Well, it would be specific to IEEE 754, but most platforms support IEEE 754, and other Python implementations can implement their own _math module to support more platforms (like platforms not supporting IEEE 754 floats).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23595>
_______________________________________
More information about the Python-bugs-list
mailing list