This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Sanmitha Sadhishkumar, docs@python, rhettinger, steven.daprano
Date 2021-09-10.02:42:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631241742.82.0.669353640852.issue45154@roundup.psfhosted.org>
In-reply-to
Content
Thank you Raymond for the explanation. I didn't realise that there was a technical reason why built-in generators had to be implemented as classes in CPython.

Sanmitha's question was already discussed answered here:

https://discuss.python.org/t/enumerate-function-or-class/10504/1
History
Date User Action Args
2021-09-10 02:42:22steven.dapranosetrecipients: + steven.daprano, rhettinger, docs@python, Sanmitha Sadhishkumar
2021-09-10 02:42:22steven.dapranosetmessageid: <1631241742.82.0.669353640852.issue45154@roundup.psfhosted.org>
2021-09-10 02:42:22steven.dapranolinkissue45154 messages
2021-09-10 02:42:22steven.dapranocreate