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