On 06/08/2011 03:01 AM, Duncan Booth wrote:
> "ru...@yahoo.com" <ru...@yahoo.com> wrote:
>> On 06/06/2011 09:29 AM, Steven D'Aprano wrote:
>>> Yes, but you have to pay the cost of loading the re engine, even if
>>> it is a one off cost, it's still a cost,
[...]
> At least part of the reason that there's no difference there is that the
> 're' module was imported in both cases:

Quite right.  I should have thought of that.

[...]
> Steven is right to assert that there's a cost to loading it, but unless you
> jump through hoops it's not a cost you can avoid paying and still use
> Python.

I would say that it is effectively zero cost then.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to