[Python-checkins] CVS: python/dist/src/Misc NEWS,1.306,1.307

Tim Peters tim_one@users.sourceforge.net
2001年11月03日 11:35:45 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv27485/python/Misc
Modified Files:
	NEWS 
Log Message:
Improved error msg when a symbolic group name is redefined. Added docs
and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F
did fix a longstanding bug here, but the fix can cause code to raise an
exception that previously worked by accident.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.306
retrieving revision 1.307
diff -C2 -d -r1.306 -r1.307
*** NEWS	2001年11月02日 23:48:20	1.306
--- NEWS	2001年11月03日 19:35:43	1.307
***************
*** 47,50 ****
--- 47,56 ----
 Library
 
+ - Symbolic group names in regular expressions must be unique. For
+ example, the regexp r'(?P<abc>)(?P<abc>)' is not allowed, because a
+ single name can't mean both "group 1" and "group 2" simultaneously.
+ Python 2.2 detects this error at regexp compilation time; previously,
+ the error went undetected, and results were unpredictable.
+ 
 - Tix exposes more commands through the classes DirSelectBox,
 DirSelectDialog, ListNoteBook, Meter, CheckList, and the

AltStyle によって変換されたページ (->オリジナル) /