Moshe Zadka moshez at
Thu Mar 23 06:59:22 CET 2000

On 22 Mar 2000, Andrew M. Kuchling wrote:

> it
> would be faster to do something like 'if line[:<whatever>] ==
> '==separator'.  

Note that in 1.6, we will be able to do it with

if line.startswith('==seperator'):
(Or, if you're using JPython, you can do it today)

If you *really* want it in CPython, just go ahead and use the CVS version.
I use it at home as my production Python, and it works fine.

advertising-string-methods-ly y'rs, Z.
Moshe Zadka <mzadka at>. -- we put the penguin in .com

More information about the Python-list mailing list