tuple.index()
Nick Maclaren
nmm1 at cus.cam.ac.uk
Wed Dec 20 06:56:38 EST 2006
In article <4uslgfF18sq18U1 at mid.individual.net>,
greg <greg at cosc.canterbury.ac.nz> writes:
|>
|> > Nope. Sorry. Consider the old model where an I/O list is an ordered
|> > sequence of strings and agents (effectively procedure calls), with no
|> > constraints on how those are ordered. With your specification, that
|> > is neither heterogenous nor homogenous :-)
|>
|> I don't see any difficulty. This is a list (homogeneous) of
|> two-element tuples (heterogeneous).
Not at all. I didn't say that they came in pairs. Consider:
[str1, str2, agent1, str3, agent2, agent3, agent4, str4, ...]
See Algol 68 for an example of this.
Regards,
Nick Maclaren.
More information about the Python-list
mailing list