Dennis Lee Bieber wrote: > On 22 Jun 2006 16:48:47 -0700, "George Sakkis" <[EMAIL PROTECTED]> > 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 -- http://mail.python.org/mailman/listinfo/python-list