[ python-Bugs-1254248 ] parser fails on long non-ascii lines if coding declared
SourceForge.net
noreply at sourceforge.net
Mon Aug 8 16:56:31 CEST 2005
Bugs item #1254248, was opened at 2005-08-08 17:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
----------------------------------------------------------------------
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