[pypy-issue] [issue916] int(string, 0), if string is not a parseable number
Dominik Hannen
tracker at bugs.pypy.org
Wed Oct 19 01:14:18 CEST 2011
New submission from Dominik Hannen <cantares1 at gmail.com>:
>>>> int("",0)
Traceback (most recent call last):
File "<console>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''
Should be saying ".. base 0: '' .."
like CPython does:
>>> int("",0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 0: ''
..
the supplied patch adds a test for this into
pypy/objspace/std/test/test_strutil.py
----------
files: test_strutil.patch
messages: 3350
nosy: dhx, pypy-issue
priority: bug
status: unread
title: int(string, 0), if string is not a parseable number
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue916>
________________________________________
More information about the pypy-issue
mailing list