[Patches] [Patch #101782] Enhances 1.6 compiler to raise 'proper' SyntaxErrors

noreply@sourceforge.net noreply@sourceforge.net
Wed, 4 Oct 2000 23:40:12 -0700


Patch #101782 has been updated. 

Project: 
Category: Parser/Compiler
Status: Postponed
Summary: Enhances 1.6 compiler to raise 'proper' SyntaxErrors

Follow-Ups:

Date: 2000-Oct-04 12:29
By: Roman_Sulzhyk

Comment:

	Hello:

	There's a problem with the compiler.c (which persists in 2.0 also) which means it raises 'old style' SyntaxErrors, which could not be formatted properly. I mentioned this to Guido during the last conference, and he said it can best be done by moving parts of the 'linecache' functionality to core python, or something along those lines. Well, I've put together something which is not so far-fetching, but plugs this hole. The only time it reverts to the 'old style' compile error is when the input file is not a regular file (like stdin), since the line information is lost at that point - don't think parser.c saves it anywhere. 

	Tell me what you think - should I port it to 2.0, or just drop it altogether if it's not needed. 

	Thanks,

	Roman
-------------------------------------------------------

Date: 2000-Oct-04 23:40
By: fdrake

Comment:
This needs to be ported to the latest CVS version before being considered for implementation (but discussion of the feature is welcome!).

This cannot be considered for inclusion in 2.0 since we're in feature freeze already, and are only fixing bugs at this point.   This can be considered for 2.1.

Marking as postponed.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101782&group_id=5470