[ python-Bugs-1254248 ] parser fails on long non-ascii lines if coding declared

SourceForge.net noreply at sourceforge.net
Mon Aug 8 17:40:16 CEST 2005


Bugs item #1254248, was opened at 2005-08-08 16:56
Message generated for change (Comment added) made by doerwalter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1254248&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.3
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Oleg Noga (oleg_noga)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser fails on long non-ascii lines if coding declared

Initial Comment:
python version: 2.3.5, 2.3.3
os: windows 2000 sp4

Parser fails to read .py file and does one of 
1. SyntaxError with broken traceback
2. MemoryError (without traceback)
3. Crush with Access violation 
4. Sometimes there is no fail at all and code imported ok

Requirements to reproduce

1. Coding must be defined like 

# -*- coding: Cp1251 -*-

if coding not declared it is all ok except warning (pep-
0263).

2. File must have at list one long line (about longer than 
256 characters) containing characters with ordinals > 
128.

3. Some luck, because sometimes there is no crush.

attached parseError.py does MemoryError


----------------------------------------------------------------------

>Comment By: Walter Dörwald (doerwalter)
Date: 2005-08-08 17:40

Message:
Logged In: YES 
user_id=89016

This is a duplicate of #1163244. Closing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1254248&group_id=5470


More information about the Python-bugs-list mailing list