On 7/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
Woohoo!
Eh, I have never had any direct need for it.
-Brett
On 7/20/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
>
> >> Why is this a defect? Have we abandoned the notion of SeqIter
> >> automatically wrapping any object with __getitem__()?
> >
> >
> > Actually, the autowrapping was intended a backwards compatibility
> > measure.
> >
> > We should make a conscious decision whether we should make it a
> > permanent feature or not.
>
> It sure simplified writing extensions.
> And it provided a convenient guarantee that all sequences are iterable.
> I don't see a downside to keeping it.
Well, it will also make mappings pseudo-iterable; in Py3k I plan to
completely get rid of the distinction between x[...] for mappings and
for sequences, which exist in C but not at the Python level.
Woohoo!
I'd like to hear from others whether the default iter fallback ought
to stay or go.
Eh, I have never had any direct need for it.
-Brett
_______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com