Before jumping in:
In many cases, when you want to reverse an enumerate, it’s small and
fixed-sized, so there’s a trivial way to do this: Just store the enumerate
iterator in a tuple, and tuples are reversible.
for idx, value in reversed(tuple(enumerate(stuff))):
But of course there are som
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
I suggest you to wait one more week to let other people comment the
PEP. After this delay, if you consider that the PEP is ready for
pronouncement, you can submit it to the Steering Council, right.
Victor
Le mer. 1 avr. 2020 à 21:56, Dennis Sweeney
a écrit :
>
> Hello all,
>
> It seems that most
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
Hello all,
It seems that most of the discussion has settled down, but I didn't quite
understand from reading PEP 1 what the next step should be -- is this an
appropriate time to open an issue on the Steering Council GitHub repository
requesting pronouncement on PEP 616?
Best,
Dennis
__
Hi,
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 iterators - keys(), values(), items() as