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.


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

Reply via email to