[issue22434] Use named constants internally in the re module

Antoine Pitrou report at bugs.python.org
Sun Sep 21 14:12:36 CEST 2014


Antoine Pitrou added the comment:

I think I agree with Serhiy. Augmenting the import dependencies from the re module can have side effects. While the alternative (a custom Int subclass) isn't extremely pretty, it does the job.

NamedIntConstant should be private, though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22434>
_______________________________________


More information about the Python-bugs-list mailing list