Specifing arguments type for a function

George Sakkis george.sakkis at gmail.com
Fri Jun 23 01:55:00 EDT 2006


Dennis Lee Bieber wrote:
> On 22 Jun 2006 16:48:47 -0700, "George Sakkis" <george.sakkis at gmail.com>
> declaimed the following in comp.lang.python:
>
> > What does __setitem__ have to do with iterability ?
>
> 	It confirms that the object is indexable, and mutable -- ie; a list,
> not a tuple or a string.

Ok, I'll try once more: What does __setitem__ have to do with
**iterability**, not mutability or indexability ? I was commenting on
Maric's post that although some objects are typically iterable, they
are often treated as atomic by some/many/most applications  (e.g.
strings). It's not rocket science.

George




More information about the Python-list mailing list