[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception
Serhiy Storchaka
report at bugs.python.org
Wed Oct 17 22:30:33 CEST 2012
Serhiy Storchaka added the comment:
> 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.
Good point. It would be better if you move the test outside isname() function and immediately raise an error with an appropriate message.
----------
nosy: +serhiy.storchaka
stage: patch review -> needs patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12759>
_______________________________________
More information about the Python-bugs-list
mailing list