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 serhiy.storchaka
Recipients eli.bendersky, jess.j, scoder, serhiy.storchaka, vstinner
Date 2018-12-18.11:53:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545134009.87.0.788709270274.issue35502@psf.upfronthosting.co.za>
In-reply-to
Content
It is not easy to avoid reference cycles if use a generator function. And generator function is much faster than an implementation as a class with the __next__ method. We need to access the iterator object from the code of the generator function, and this creates a cycle.
History
Date User Action Args
2018-12-18 11:53:29serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, vstinner, eli.bendersky, jess.j
2018-12-18 11:53:29serhiy.storchakasetmessageid: <1545134009.87.0.788709270274.issue35502@psf.upfronthosting.co.za>
2018-12-18 11:53:29serhiy.storchakalinkissue35502 messages
2018-12-18 11:53:29serhiy.storchakacreate