[issue31671] IntFlag makes re.compile slower
INADA Naoki
report at bugs.python.org
Thu Oct 5 05:34:15 EDT 2017
INADA Naoki <songofacandy at gmail.com> added the comment:
Instead caching type(flags), how about this?
if not isinstance(flags, int):
raise TypeError(f"flags must be int or RegexFlag, got {flags!r}")
flags = int(flags)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31671>
_______________________________________
More information about the Python-bugs-list
mailing list