
May 30, 2021
7:20 a.m.
On Mon, May 31, 2021 at 12:19 AM Stephen J. Turnbull <turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
Chris Angelico writes:
Ditto, reversed(). The method versions are in-place.
Not correct - reversed() is a parallel to iter() and returns a reversed iterator.
Opps, I knew that too -- once upon a time. Thanks for the correction!
To be fair, I don't think I've *ever* used reversed() in any context where it would have made a difference whether it returned a list or an iterator :) ChrisA