Re: String functions: what's the difference?

2006-03-09 Thread Harro de Jong
.. > Have fun with python! If the few days I've spent on it so far are any indication, I will. This is my first foray into programming since college; I like 'How to Think Like a Computer Scientist' much better than my impenetrable C textbook. -- Harro de Jong remove the extra Xs from xmsnet to mail me -- http://mail.python.org/mailman/listinfo/python-list

String functions: what's the difference?

2006-03-09 Thread Harro de Jong
measuring mostly overhead. I'd expect the third option to be the fastest (involves looking up 3 values, where the others have to iterate through a-z), but am I right? And reasons to prefer one? a-z doesn't contain all lowercase letters (it omits acents and symbols), but other than