Ammar Askar <am...@ammaraskar.com> added the comment:
Julien, in the REPL "_" represents the last evaluated expression. So you can do: >>> iter(range(10)) <range_iterator object at 0x03436578> >>> list(_) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Do you feel like that covers what you're asking for? ---------- nosy: +ammar2 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41030> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com