[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

Mark Dickinson report at bugs.python.org
Tue Oct 30 11:16:11 CET 2012


Mark Dickinson added the comment:

I think there's something generally smelly about the way hypot is handled;  this isn't the only hypot-related build issue that's turned up.  I'm wondering whether the code can be reworked to deal with hypot in the same way that functions like log1p, etc. are dealt with in the math module---i.e., define a _Py_hypot wrapper function, and use that everywhere internally.  One difference is that log1p is only used in cmath and math, while hypot is also needed in the Python core.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11566>
_______________________________________


More information about the Python-bugs-list mailing list