[New-bugs-announce] [issue2844] int() lies about base parameter

Jakub Wilk report at bugs.python.org
Tue May 13 12:03:55 CEST 2008


New submission from Jakub Wilk <ubanus at users.sf.net>:

>>> int('42', 42)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: int() base must be >= 2 and <= 36

>>> int('42', -909)
42

----------
components: Library (Lib)
messages: 66777
nosy: jwilk
severity: normal
status: open
title: int() lies about base parameter
type: behavior
versions: Python 2.4, Python 2.5

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


More information about the New-bugs-announce mailing list