On Mon, May 31, 2021 at 12:19 AM Stephen J. Turnbull <turnbull.stephen...@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 _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/M7MURFJ64DSOB5M7BMKIVHC4AYQ2V2ON/ Code of Conduct: http://python.org/psf/codeofconduct/