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.

classification
Title: parser tells invalid syntax with correct code
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: doerwalter, ntrunk
Priority: normal Keywords:

Created on 2005-05-30 22:36 by ntrunk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bug.zip ntrunk, 2005-05-30 22:36 contains 2 scripts wich will reproduce the bug
Messages (2)
msg25445 - (view) Author: ntrunk (ntrunk) Date: 2005-05-30 22:36
I work with python 2.4 on Win2000 Sp4.
I wrote a simple game with 2 modules, importing one into 
the other. In the imported module I wrote in the first line 
the coding: iso-8859-15. Starting the script from the first 
module the parser shows 'invalid syntax'. By inserting *1* 
space in a comment line the script works fine!
I reduced my scripts to the minimal lines, wich will 
reproduce the bug. (Actually the parser tells me, that the 
syntax error is in line 75 :-)
Changing the coding to iso-8859-1 will making the bug 
dissapear.
msg25446 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-05-31 08:51
Logged In: YES 
user_id=89016

This is related to the new codec buffering code. It's a
duplicate of bug #1175396 (and various others).
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42031
2005-05-30 22:36:24ntrunkcreate