Filtering content of a text file

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Jul 27 08:33:17 EDT 2007


On Fri, 27 Jul 2007 12:15:25 +0200, Bruno Desthuilliers wrote:

> 4/ print "//-+alibaba sinage"[4:].startswith('a')

print "//-+alibaba sinage".startswith('a', 4)

This does not create an extra string from the slicing.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list