Message279799
The error message is much better now, thanks you all!
Seems the ^ pointer is not always correct. For example, in the function scope it's correct:
$ cat test.py
def foo():
s = 'C:\Program Files\Microsoft'
$ python3.7 -W error test.py
File "test.py", line 2
s = 'C:\Program Files\Microsoft'
^
SyntaxError: invalid escape sequence \P
On the other hand, top-level literals confuses the pointer:
$ cat test.py
s = 'C:\Program Files\Microsoft'
$ python3.7 -W error test.py
File "test.py", line 1
s = 'C:\Program Files\Microsoft'
^
SyntaxError: invalid escape sequence \P
Is that expected?
Using 259745f9a1e4 on Arch Linux 64-bit |
|
Date |
User |
Action |
Args |
2016-10-31 15:31:38 | yan12125 | set | recipients:
+ yan12125, rhettinger, ncoghlan, eric.smith, ned.deily, ezio.melotti, r.david.murray, petr.viktorin, python-dev, martin.panter, serhiy.storchaka, yselivanov, Tim.Graham, abarry |
2016-10-31 15:31:38 | yan12125 | set | messageid: <1477927898.93.0.229399818719.issue28128@psf.upfronthosting.co.za> |
2016-10-31 15:31:38 | yan12125 | link | issue28128 messages |
2016-10-31 15:31:38 | yan12125 | create | |
|