From: <no...@so...> - 2000-12-11 18:50:24
|
Bug #122852, was updated on 2000-Nov-18 11:33 Here is a current snapshot of the bug. Project: Jython Category: Library Status: Closed Resolution: Fixed Bug Group: None Priority: 1 Submitted by: bckfnn Assigned to : nobody Summary: re.RegexObject.groupindex Details: Erronous handling of '(' for groupindex count: Here the correct output of (C-)Python: >>> re.compile(r'\\()(?P<x>)').groupindex {'x': 2} >>> re.compile(r'[()](?P<x>)').groupindex {'x': 1} >>> re.compile(r'[()](?P<x>)').groupindex {'x': 1} >>> And here the buggy output of JPython: >>> re.compile(r'\\()(?P<x>)').groupindex {'x': 1} >>> re.compile(r'[()](?P<x>)').groupindex {'x': 2} >>> re.compile(r'\\(?P<x>)').groupindex Traceback (innermost last): File "<console>", line 1, in ? re.error: Sequence (?P...) not recognized >>> Follow-Ups: Date: 2000-Dec-11 10:50 By: bckfnn Comment: Closed when we switched to sre where the bug is solved. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=122852&group_id=12867 |