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 rhettinger
Recipients Sanmitha Sadhishkumar, docs@python, rhettinger
Date 2021-09-09.16:31:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631205094.18.0.81565394215.issue45154@roundup.psfhosted.org>
In-reply-to
Content
In pure python, generators are implemented as functions.  In CPython, the only way to implement them is as a class.  From a user's point of view, enumerate(), map(), zip(), and filter() are used like a functions (they doesn't have non-dunder methods).  Accordingly, they don't have class markup in the docs even though technically they are classes.  The docs are mostly consistent in this regard and have opted for the presentation that tends to be the most helpful to users.
History
Date User Action Args
2021-09-09 16:31:34rhettingersetrecipients: + rhettinger, docs@python, Sanmitha Sadhishkumar
2021-09-09 16:31:34rhettingersetmessageid: <1631205094.18.0.81565394215.issue45154@roundup.psfhosted.org>
2021-09-09 16:31:34rhettingerlinkissue45154 messages
2021-09-09 16:31:34rhettingercreate