By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,594 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,594 IT Pros & Developers. It's quick & easy.

Erroneous line number error in Py2.4.1 [Windows 2000+SP3]

P: n/a
For some reason Python 2.3.5 reports the error in the following program
correctly:

File "C:\Temp\problem.py", line 7
SyntaxError: unknown decode error

...whereas Python 2.4.1 reports an invalid line number:

File "C:\Temp\problem.py", line 2
SyntaxError: unknown decode error

----- problem.py starts -----
# -*- coding: ascii -*-

"""
Foo bar
"""

# is not allowed in ascii coding
----- problem.py ends -----

Does anyone have a clue what is going on? Without the encoding
declaration both Python versions report the usual deprecation warning
(just like they should be doing).

My environment: Windows 2000 + SP3.

BR,
Timo

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Timo wrote:
Does anyone have a clue what is going on?


No. Please make a bug report to sf.net/projects/python.

Regards,
Martin
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.