Vinay Sajip <[email protected]> added the comment:
While the patch might improve over the current situation, doesn't it
potentially mask other errors which might be raised by PyFloat_AsDouble()?
Why not just
x = PyFloat_AsDouble(value);
if (PyErr_Occurred())
return NULL;
which would not mask any exception?
----------
nosy: +vinay.sajip
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9041>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com