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
```


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to