[pypy-issue] Issue #2712: Incorrect reporting of SyntaxError (pypy/pypy)
Ronan Lamy
issues-reply at bitbucket.org
Fri Dec 22 11:11:06 EST 2017
New issue 2712: Incorrect reporting of SyntaxError
https://bitbucket.org/pypy/pypy/issues/2712/incorrect-reporting-of-syntaxerror
Ronan Lamy:
Consider a file `foo.py` containing only `b'café'`. Calling `python foo.py` with CPython 3.5 prints:
```
File "foo.py", line 1
b'café'
^
SyntaxError: bytes can only contain ASCII literal characters.
```
but pypy3 shows
```
File "<string>", line None
SyntaxError: bytes can only contain ASCII literal characters.
```
which is rather unhelpful.
More information about the pypy-issue
mailing list