Message279799
| Author | yan12125 |
|---|---|
| Recipients | Tim.Graham, abarry, eric.smith, ezio.melotti, martin.panter, ncoghlan, ned.deily, petr.viktorin, python-dev, r.david.murray, rhettinger, serhiy.storchaka, yan12125, yselivanov |
| Date | 2016-10-31.15:31:38 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1477927898.93.0.229399818719.issue28128@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 |
|
| History | |||
|---|---|---|---|
| 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 | |