[pypy-issue] [issue916] int(string, 0), if string is not a parseable number

Armin Rigo tracker at bugs.pypy.org
Wed Oct 19 13:17:20 CEST 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

Just for fun: on CPython,

>>> int("5", -909)
5

But only if the base is set to -909.  PyPy doesn't reproduce this behavior, but
I guess this is not a bug :-)

----------
nosy: +arigo

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue916>
________________________________________


More information about the pypy-issue mailing list