Re: st...@pearwood.info
> It isn't really well-defined, since enumerate can operate on infinite
> iterators, and you cannot reverse an infinite stream.
It is well defined on any iterable that itself is reversible and has
defined length. For standard types that's lists, strings, dictionary
iterato
Hi Ilya,
I'm not sure that this mailing list (Python-Dev) is the right place for
this discussion, I think that Python-Ideas (CCed) is the correct place.
For the benefit of Python-Ideas, I have left your entire post below, to
establish context.
[Ilya]
> I needed reversed(enumerate(x: list)) in
01.04.20 21:45, Ilya Kamenshchikov пише:
I needed reversed(enumerate(x: list)) in my code, and have discovered
that it wound't work. This is disappointing because operation is well
defined. It is also well defined for str type, range, and - in
principle, but not yet in practice - on dictionary