This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients ezio.melotti, gvanrossum, mrabarnett, neologix, pitrou, serhiy.storchaka
Date 2013-03-24.07:57:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364111865.25.0.229423350519.issue17441@psf.upfronthosting.co.za>
In-reply-to
Content
> 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...
History
Date User Action Args
2013-03-24 07:57:45neologixsetrecipients: + neologix, gvanrossum, pitrou, ezio.melotti, mrabarnett, serhiy.storchaka
2013-03-24 07:57:45neologixsetmessageid: <1364111865.25.0.229423350519.issue17441@psf.upfronthosting.co.za>
2013-03-24 07:57:45neologixlinkissue17441 messages
2013-03-24 07:57:44neologixcreate