[pypy-issue] Issue #2176: Fatal RPython error: ParseStringOverflowError (pypy/pypy)
Will Gardner
issues-reply at bitbucket.org
Wed Oct 28 07:51:39 EDT 2015
New issue 2176: Fatal RPython error: ParseStringOverflowError
https://bitbucket.org/pypy/pypy/issues/2176/fatal-rpython-error
Will Gardner:
Doing some data processing I get a Fatal RPython error when attempting to call:
```
#!python
def num(s):
"""
Simple function for converting a string to an int or float.
:param s: str
:return int|float|None
"""
try:
return int(s)
except (TypeError, ValueError):
try:
return float(s)
except (TypeError, ValueError):
return None
```
with the string '18446744073625060068' (Specifically it occurs at ```return int(s)```). This seems to occur after the JIT kicks in and doesn't occur when it's been run elsewhere.
Exact error output is:
```
RPython traceback:
...
Fatal RPython error: ParseStringOverflowError
```
More information about the pypy-issue
mailing list