tuple.index()

Fredrik Lundh fredrik at pythonware.com
Thu Dec 14 09:00:00 EST 2006


Glenn Hutchings wrote:

> But there are situations where you might want to treat it as a
> read-only list.  E.g., an argument to a function, so that you can
> guarantee the function won't modify it.

if you cannot trust your own code not to modify objects you pass to it,
I'm not sure Python's the right language for you.

</F> 






More information about the Python-list mailing list