News for hackers. Stuff that matters.
Re:Python to get Google-backed speedup by ghshephard on Saturday June 13, 2009 @05:26PM (#656513)
It's difficult to explain what it is, precisely, about python RegExes that make them awkward, and perhaps if I had never encountered the syntatic regex sugar that is perl, I would have never noticed. But, as a total python advocate and frequent writer of python scripts - I still find my brain hitting wait-states that don't occur in perl when I need to pattern match. I can live with that because of the 50+ things that make python so much better (for me) than Perl (Hash of Array / Array of Hash at the top of the list) - but it's sad that I still don't regex in Python as fluidly as perl.

I think the first hint that Python wasn't developed with RegEx users in mind would be that in the 700 Page "Learning Python, 3rd Edition" - Regular expressions aren't even mentioned in the Index.

Re:Python to get Google-backed speedup by llimllib on Saturday June 13, 2009 @06:03PM (#656549)
well, I don't disagree that there's a tradeoff there - the s/ and =~ syntaxes are super neat, as opposed to the readable and consistent python style.

I can see that as a reason for preferring perl's syntax, but I just don't understand hating python's regex, which is what my question was about.