[issue31671] IntFlag makes re.compile slower

Serhiy Storchaka report at bugs.python.org
Tue Oct 3 12:24:45 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I don't think there is a problem which is worth to be solved by PR 3867. It is very unlikely that anyone uses re functions with a pattern and float flags which accidentally matches already cached valid pattern and integer flag. If float value is passed as a flag it is likely is passed the first time. Fractional floats are rejected in any case. This is different from the problem with PR 3862.

----------

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


More information about the Python-bugs-list mailing list