tuple.index()

greg greg at cosc.canterbury.ac.nz
Wed Dec 20 19:30:17 EST 2006


Nick Maclaren wrote:

> Not at all.  I didn't say that they came in pairs.  Consider:
> 
>     [str1, str2, agent1, str3, agent2, agent3, agent4, str4, ...]

That's homogeneous. Any item of the list can be
either a string or an agent, and the only thing
the position in the list affects is what order
the strings and agents are processed in.

--
Greg



More information about the Python-list mailing list