[issue16772] int() accepts float number base
Mark Dickinson
report at bugs.python.org
Fri Dec 28 11:27:20 CET 2012
Mark Dickinson added the comment:
> I actually think this issue can be closed as fixed:
Ah, whoops; I failed to understand Serhiy's comment about the still existing "if (!PyLong_Check(obase))", which does indeed mean that the code *still* doesn't work for __index__-able types.
Here's a fix for that, with tests.
----------
keywords: +patch
Added file: http://bugs.python.org/file28465/issue16772.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16772>
_______________________________________
More information about the Python-bugs-list
mailing list