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

T

Timo

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
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Timo said:
Does anyone have a clue what is going on?

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

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top