tuple.index()

Nick Maclaren nmm1 at cus.cam.ac.uk
Mon Dec 18 04:43:38 EST 2006


In article <4um6tgF18l1srU1 at mid.individual.net>,
greg <greg at cosc.canterbury.ac.nz> writes:
|> Roy Smith wrote:
|> 
|> > The struct does lookup by name, the tuple is inherently index based.
|> 
|> I was trying to help people understand the distinction
|> we're talking about by showing an example of the same
|> distinction in another language where it's much clearer.
|> 
|> There are a great many ways in which C structs are
|> different from Python tuples, and C arrays are different
|> from Python lists. But they're not the aspects I'm
|> drawing an analogy between.

Unfortunately, you are confusing the issue, because there are far
more extraneous aspects than relevant ones, and your view of the
similarities requires looking at the issue in a very strange way.
I think that I can see what you mean, but only just.


Regards,
Nick Maclaren.



More information about the Python-list mailing list