tuple.index()

Fredrik Lundh fredrik at pythonware.com
Thu Dec 14 10:28:42 EST 2006


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

?

</F> 






More information about the Python-list mailing list