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 <>
> 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(), 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:45neologixsetrecipients: + neologix, gvanrossum, pitrou, ezio.melotti, mrabarnett, serhiy.storchaka
2013-03-24 07:57:45neologixsetmessageid: <>
2013-03-24 07:57:45neologixlinkissue17441 messages
2013-03-24 07:57:44neologixcreate