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 -- 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/WDJWOB4NVIIQPJWBNZCF5K4SXZJIARFZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to