This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 jmfauth
收信人 barry, dlitz, jmfauth, ocean-city
日期 2008-09-21.16:14:48
SpamBayes Score 4.012348e-09
Marked as misclassified
Message-id <1222013689.86.0.794681747215.issue2384@psf.upfronthosting.co.za>
In-reply-to
内容
Python 3.0rc1

If the lines are now displayed correctly, I think there is still a
numbering issue, a +1 offset.

Python 2.5.2

# -*- coding: cp1252 -*-      <<<< line 1, first line

s = 'abc'
import dummy
s = 'def'

---

>pythonw -u "testpy2.py"
Traceback (most recent call last):
  File "testpy2.py", line 4, in <module>
    import dummy
ImportError: No module named dummy
>Exit code: 1


Python 3.0rc1

# -*- coding: cp1252 -*-

s = 'abc'
import dummy
s = 'def'

---

>c:\python30\pythonw -u "testpy3.py"
Traceback (most recent call last):
  File "testpy3.py", line 5, in <module>
    s = 'def'
ImportError: No module named dummy
>Exit code: 1
历史
日期 用户 动作 参数
2008-09-21 16:14:50jmfauth修改recipients: + jmfauth, barry, ocean-city, dlitz
2008-09-21 16:14:49jmfauth修改messageid: <1222013689.86.0.794681747215.issue2384@psf.upfronthosting.co.za>
2008-09-21 16:14:49jmfauth链接issue2384 messages
2008-09-21 16:14:48jmfauth创建