bpo-31671: re: Convert RegexFlag to int before compile (GH-3862)
sre_compile does bit test (e.g. `flags & SRE_FLAG_IGNORECASE`) in loop. `IntFlag.__and__` and `IntFlag.__new__` made it slower. So this commit convert it to normal int before passing flags to `sre_compile()`.
I
INADA Naoki committed
c1c47c166b1012d34f2c6e111ee9ccb5c4d12de7
Parent: af810b3
Committed by GitHub <noreply@github.com>
on 10/5/2017, 8:19:26 AM