Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Tuesday, March 10, 2009

Transitioning from Perl to Python

I'm excited.  I'm taking a Python class tomorrow.  At the same time, I'm a little loathe to give be cheating on my long time girlfriend Perl.  Things will be different, but hopefully better in the long run.

One thing I'm hooked on is Perl's regular expressions.  Nick Craig-Wood explains that regular expressions in Python are more clunky but...
Having made the transition from perl to python a couple of years ago, I find myself using regexpes much less. In perl everything looks like it needs a regexp, but python has a much richer set of string methods, eg .startswith, .endswith, good subscripting and the nice "in" operator for strings.
So hopefully things will be ok.