[pypy-issue] Issue #2886: [3.6] SyntaxError on float literals with underscores in the fractional part (pypy/pypy)

Gary Wang issues-reply at bitbucket.org
Tue Sep 11 17:57:12 EDT 2018


New issue 2886: [3.6] SyntaxError on float literals with underscores in the fractional part
https://bitbucket.org/pypy/pypy/issues/2886/36-syntaxerror-on-float-literals-with

Gary Wang:

CPython 3.6:
```
$ python3.6 -c 'print(0.00_2)'
0.002
```

PyPy 3.6 nightly:
```
$ ./pypy3 -c 'print(0.00_2)'
  File "<string>", line 1
    print(0.00_2)
              ^
SyntaxError: invalid syntax (expected ')')
```




More information about the pypy-issue mailing list