readline()

Moshe Zadka moshez at math.huji.ac.il
Thu Mar 23 00:59:22 EST 2000


On 22 Mar 2000, Andrew M. Kuchling wrote:

<snip>
> 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'):
	pass
(Or, if you're using JPython, you can do it today)

PS.
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 geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list