Official 2.7 documentation *hints* that re.compile does not cache
re.compile results (since some methods of module re actually are
caching result from re.compile):

https://docs.python.org/2/library/re.html#re.compile

On 23 April 2014 08:34, Jeff Hardy <[email protected]> wrote:
> On Wed, Apr 23, 2014 at 6:14 AM, Pawel Jasinski
> <[email protected]> wrote:
>> asciidoc calls frequently re.compile.
>> In case of cpython re.compile uses cache, where ironpython performs compile
>> unconditionally.
>> https://ironpython.codeplex.com/workitem/35146
>
> Why would it repeatedly call compile? The point of compile is that it
> should only be called once and then the result re-used.
>
> - Jeff
> _______________________________________________
> Ironpython-users mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/ironpython-users
_______________________________________________
Ironpython-users mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to