tuple.index()

Nick Maclaren nmm1 at cus.cam.ac.uk
Thu Dec 14 10:52:05 EST 2006


In article <mailman.1604.1166110144.32031.python-list at python.org>,
"Fredrik Lundh" <fredrik at pythonware.com> writes:
|> Nick Maclaren wrote:
|> 
|> > If lists are intended to be homogeneous, then they should be checked
|> > for that, and an exception raised when an attempt is to make them
|> > non-homogeneous.
|> 
|> so how would that check work, given that Python's type model is based on
|> duck typing
|> 
|>     http://en.wikipedia.org/wiki/Duck_typing

See my response to Georg Brandl (specifically the memo. to myself).


Regards,
Nick Maclaren.



More information about the Python-list mailing list