[issue41786] re.RegexFlag.__str__ is incorrect

Ethan Furman report at bugs.python.org
Mon Sep 14 18:06:57 EDT 2020


Ethan Furman <ethan at stoneleaf.us> added the comment:

>>> import re
>>> re.I
re.IGNORECASE

>>> print(re.I)
RegexFlag.IGNORECASE    # according to comment in linked issue, this should be `re.IGNORECASE` as well

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41786>
_______________________________________


More information about the Python-bugs-list mailing list