[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception
Masha Katsman mkats...@yahoo.com added the comment: Updating the patch with the test. The test checks that the re exception is thrown in case of the (?P=) and (?P) expressions. It used to raise an Index exception. My only question is, the exception we raise now says, there invalid characters in the group name, whether in our case the group name is just empty. -- Added file: http://bugs.python.org/file23769/patch_for_12759 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12759 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception
Masha Katsman mkats...@yahoo.com added the comment: I am working on the patch. The fix is ready. Will be delivered shortly. It is also broken when I specify (?P) pattern -- nosy: +mashayk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12759 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception
Masha Katsman mkats...@yahoo.com added the comment: The problem with the above expression is that it does not specify a group name. The expression itself is not right. So, it blows up when it tries to parse the name. I put the check for the empty name before any processing is done. -- Added file: http://bugs.python.org/file23751/patch_for_12759 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12759 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com