parsing tabs in a string

Andrew Alzner andrewa at
Mon Sep 23 13:11:28 EDT 2002


I'm getting to know Python and have a quick question for something I don't understand.

I'm trying to parse information extracted from a spreadsheet which is tab separated. Here is a simplified version of what I have:

print y.find("\t")
print y.find("\t",1)

I thought the second .find should return the second occurence of "\t". To get the index of the second tab I have to type:

print y.find("\t",13)

This doesn't make sense to me. Can someone help me please.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list