Message185122
> The docs don't even mention that re.compile() actually uses a cache.
Actually it does:
"""
re.compile(pattern, flags=0)
Note The compiled versions of the most recent patterns passed to re.match(), re.search() or re.compile() are cached, so programs that use only a few regular expressions at a time needn’t worry about compiling regular expressions.
"""
Now, I agree that it's definitely suboptimal... |
|
Date |
User |
Action |
Args |
2013-03-24 07:57:45 | neologix | set | recipients:
+ neologix, gvanrossum, pitrou, ezio.melotti, mrabarnett, serhiy.storchaka |
2013-03-24 07:57:45 | neologix | set | messageid: <1364111865.25.0.229423350519.issue17441@psf.upfronthosting.co.za> |
2013-03-24 07:57:45 | neologix | link | issue17441 messages |
2013-03-24 07:57:44 | neologix | create | |
|