how to avoid leading white spaces

rurpy at yahoo.com rurpy at yahoo.com
Wed Jun 8 10:39:24 EDT 2011


On 06/08/2011 03:01 AM, Duncan Booth wrote:
> "rurpy at yahoo.com" <rurpy at 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.



More information about the Python-list mailing list