On Mon, Nov 18, 2019, at 13:35, Serhiy Storchaka wrote: > 18.11.19 04:39, Daniel Zeng пише: > > Syntax for tuple comprehension, something like: > > (i, for i in range(10)) > > (**(i for i in range(10)))
It'd be (*(i for i in range(10)),) but point taken. In fact, after thinking about it some more, I'm not sure if there's any more efficient way to implement it anyway, considering that there's no way for the loop that would be generated to append to a tuple. _______________________________________________ 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/3F5ESELWYB72IBVGVWAAU5JOSPUXLVQS/ Code of Conduct: http://python.org/psf/codeofconduct/