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 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.
History
Date User Action Args
2012-11-03 02:29:31ezio.melottisetrecipients: + ezio.melotti, barry, brett.cannon, rhettinger, ncoghlan, pitrou, pjenvey, zzzeek
2012-11-03 02:29:30ezio.melottisetmessageid: <1351909770.84.0.0914879986562.issue16389@psf.upfronthosting.co.za>
2012-11-03 02:29:30ezio.melottilinkissue16389 messages
2012-11-03 02:29:29ezio.melotticreate