How about enabling subscription operator (`[]`) for generator expressions? Also for all `zip()`, `key()`, etc. They could be evaluated in the background only for the requested amount, to avoid evaluating the whole expression to something like a list or tuple, then indexed. _______________________________________________ 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/WDJWOB4NVIIQPJWBNZCF5K4SXZJIARFZ/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Enable subscription operator for generator... Nuri Jung
- [Python-ideas] Re: Enable subscription operator for ... Joao S. O. Bueno
- [Python-ideas] Re: Enable subscription operator ... Chris Angelico
- [Python-ideas] Re: Enable subscription operator ... Paul Moore
- [Python-ideas] Re: Enable subscription opera... Oscar Benjamin
- [Python-ideas] Re: Enable subscription o... Paul Moore
- [Python-ideas] Re: Enable subscript... Oscar Benjamin
- [Python-ideas] Re: Enable subsc... Marco Sulla
- [Python-ideas] Re: Enable subscription o... Steven D'Aprano
- [Python-ideas] Re: Enable subscription operator ... Nuri Jung
- [Python-ideas] Re: Enable subscription operator for ... Steven D'Aprano
