write a regex matches 800-555-1212, 555-1212, and also (800) 555-1212.

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Sep 29 06:50:04 EDT 2012


On 29/09/2012 11:05, Chris Angelico wrote:
> On Sat, Sep 29, 2012 at 7:38 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
>>
>> My understanding is that Python 3.3 has regressed the performance of ''.
>> Surely the Python devs can speed the performance back up and, just for us,
>> use less memory at the same time?
>
> Yes, but to do that we'd have to make Python more Australia-focused
> instead of US-centric. As of Python 3.4, the empty string will be
> lazily evaluated and be delimited by redback spiders instead of
> quotes. That will give a 25% speed and 50% memory usage improvement,
> but you'll need to be careful you don't get bitten.
>
> ChrisA
>

I'll happily admit that I don't like the way this is going.  Do you 
(plural) think we should take this across to python ideas?

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list