[issue16772] int() accepts float number base
Ezio Melotti
report at bugs.python.org
Tue Dec 25 16:03:35 CET 2012
Ezio Melotti added the comment:
2.7$ ./python -c 'int("5", 12.5)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: integer argument expected, got float
3.2$ ./python -c 'int("5", 12.5)'
3.2$
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16772>
_______________________________________
More information about the Python-bugs-list
mailing list