Message174599
| Author |
ezio.melotti |
| Recipients |
barry, brett.cannon, ezio.melotti, ncoghlan, pitrou, pjenvey, rhettinger, zzzeek |
| Date |
2012年11月03日.02:29:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1351909770.84.0.0914879986562.issue16389@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> re.compile() calls _compile() which has the lru_cache decorator so it
> will trigger it.
What's the point of using the lru_cache for compiled regexes?
Unless I'm missing something, re.compile() should just return the compiled regex without going though lru_cache and needlessly wasting time and cache's slots. |
|