[Python-checkins] python/dist/src/Misc NEWS,1.657,1.658
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 13 Feb 2003 14:08:00 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv26189/Misc
Modified Files:
NEWS
Log Message:
- Finally fixed the bug in compile() and exec where a string ending
with an indented code block but no newline would raise SyntaxError.
This would have been a four-line change in parsetok.c... Except
codeop.py depends on this behavior, so a compilation flag had to be
invented that causes the tokenizer to revert to the old behavior;
this required extra changes to 2 .h files, 2 .c files, and 2 .py
files. (Fixes SF bug #501622.)
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.657
retrieving revision 1.658
diff -C2 -d -r1.657 -r1.658
*** NEWS 13 Feb 2003 16:30:16 -0000 1.657
--- NEWS 13 Feb 2003 22:07:56 -0000 1.658
***************
*** 13,16 ****
--- 13,24 ----
-----------------
+ - Finally fixed the bug in compile() and exec where a string ending
+ with an indented code block but no newline would raise SyntaxError.
+ This would have been a four-line change in parsetok.c... Except
+ codeop.py depends on this behavior, so a compilation flag had to be
+ invented that causes the tokenizer to revert to the old behavior;
+ this required extra changes to 2 .h files, 2 .c files, and 2 .py
+ files.
+
- If a new-style class defines neither __new__ nor __init__, its
constructor would ignore all arguments. This is changed now: the