[issue16772] int() accepts float number base
Serhiy Storchaka
report at bugs.python.org
Thu Dec 27 07:48:50 CET 2012
Serhiy Storchaka added the comment:
But you have "if (!PyLong_Check(obase))" check before. Only ints acceptable. The only difference with previous code is that now OverflowError raised for large bases instead of ValueError. int.__round__ doesn't produce OverflowError.
In any case the final version of those changes should be applied to 3.2 and 3.3 too (if no one objects).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16772>
_______________________________________
More information about the Python-bugs-list
mailing list