[Ironpython-users] running asciidoc

Olof Bjarnason olof.bjarnason at gmail.com
Wed Apr 23 09:51:31 CEST 2014


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 <jdhardy at gmail.com> wrote:
> On Wed, Apr 23, 2014 at 6:14 AM, Pawel Jasinski
> <pawel.jasinski at gmail.com> 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
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users


More information about the Ironpython-users mailing list