[issue2844] int() lies about base parameter

Jakub Wilk report at bugs.python.org
Tue May 13 18:11:38 CEST 2008


Jakub Wilk <ubanus at users.sf.net> added the comment:

10 would *not* do the trick:

>>> int(42)
42

>>> int(42, 10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() can't convert non-string with explicit base

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2844>
__________________________________


More information about the Python-bugs-list mailing list