Message306366
| Author | vstinner |
|---|---|
| Recipients | vstinner |
| Date | 2017-11-16.16:03:29 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1510848209.84.0.213398074469.issue32050@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The note in the documentation is wrong: the line number is correct when using the -x option, even if the first line is skipped.
Example with Python 2.7:
---
$ cat x.py
print(1)
print(2)
x
$ python2 x.py
1
2
Traceback (most recent call last):
File "x.py", line 3, in <module>
x
NameError: name 'x' is not defined
$ python2 -x x.py
2
Traceback (most recent call last):
File "x.py", line 3, in <module>
x
NameError: name 'x' is not defined
---
Attached PR 4423 fixes Python 2.7 documentation. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-11-16 16:03:29 | vstinner | set | recipients: + vstinner |
| 2017-11-16 16:03:29 | vstinner | set | messageid: <1510848209.84.0.213398074469.issue32050@psf.upfronthosting.co.za> |
| 2017-11-16 16:03:29 | vstinner | link | issue32050 messages |
| 2017-11-16 16:03:29 | vstinner | create | |