tuple.index()

Nick Maclaren nmm1 at cus.cam.ac.uk
Thu Dec 21 05:06:38 EST 2006


In article <4589D599.6010704 at cosc.canterbury.ac.nz>,
greg <greg at cosc.canterbury.ac.nz> writes:
|> 
|> > 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.

Grrk.  I think that I see Python's problem - and it is Python's problem,
not mine or that of any of the other people who ask related questions.

The terms "heterogeneous" and "homogeneous" are being used in an extremely
specialised, unconventional and restricted way, without any kind of hint
in the documentation that this is so.  It isn't an UNREASONABLE use, but
assuredly will NOT spring to the mind of anyone who sees the terms, most
especially if they are familiar with their use in other areas of computing
and mathematics.

But, given that meaning, I now understand your point.


Regards,
Nick Maclaren.



More information about the Python-list mailing list