Filtering content of a text file

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Jul 27 14:36:13 CEST 2007


Marc 'BlackJack' Rintsch a écrit :
> 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.

One learns everyday...
Thanks Marc.



More information about the Python-list mailing list