Message302996
ISTM, the whole point is to compile in advance. When I worked during high frequency trading, that was essential to news trading where you *really* didn't want to pay the compilation cost at the time the regex was used. This proposal takes away the user's only control over when the regex is compiled.
FWIW, if a user doesn't explicitly invoke re.compile() and instead uses a straight call to re.search(pattern, s), then the pattern is compiled on first-use and cached for future use. In other words, we already have a simple and clear way to auto-compile on first use. I recommend against taking away the only option to specify otherwise. |
|
Date |
User |
Action |
Args |
2017-09-26 02:39:48 | rhettinger | set | recipients:
+ rhettinger, barry |
2017-09-26 02:39:48 | rhettinger | set | messageid: <1506393588.79.0.168204074265.issue31580@psf.upfronthosting.co.za> |
2017-09-26 02:39:48 | rhettinger | link | issue31580 messages |
2017-09-26 02:39:48 | rhettinger | create | |
|