[Python-3000] Python-3000 Digest, Vol 9, Issue 27

George Sakkis george.sakkis at gmail.com
Tue Nov 14 16:29:42 CET 2006


On 11/14/06, Fredrik Lundh <fredrik at pythonware.com> wrote:

> BJ?rn Lindqvist wrote:
>
> > But why is both the dict and list protocol so fat then? Is it hard to
> > create your own dict or list-derived types in Python?
>
> don't confuse things like lists and dictionaries with things like
> sequences and mappings.  iterators and iterables belong to the second
> category.

This doesn't answer my last question: why do we need itertools when we
can live without sequencetools, mappingtools, fileliketools, etc. ?

George


More information about the Python-3000 mailing list