Message279888
See msg279799 from issue28128, repeated here:
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? |
|
Date |
User |
Action |
Args |
2016-11-01 18:23:42 | eric.smith | set | recipients:
+ eric.smith, yan12125 |
2016-11-01 18:23:42 | eric.smith | set | messageid: <1478024622.67.0.848531208626.issue28582@psf.upfronthosting.co.za> |
2016-11-01 18:23:42 | eric.smith | link | issue28582 messages |
2016-11-01 18:23:42 | eric.smith | create | |
|