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 gvanrossum
Recipients gvanrossum, mmcewen-g, pje, rhettinger
Date 2019-11-26.01:21:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574731262.73.0.265805701384.issue38911@roundup.psfhosted.org>
In-reply-to
Content
The PEP does not specify collections.Generator at all, so this is not just a matter of interpreting the PEP.

The presence of a __del__ method can cause subtle behavior changes to the GC, so I worry that adding __del__ to that class now is going to break currently-working code.

Not having seen the OP's Generator subclass, I wonder if they even meant to subclass collections.Generator?  It's pretty esoteric to subclass Generator -- usually it's better to subclass Iterator or Iterable.
History
Date User Action Args
2019-11-26 01:21:02gvanrossumsetrecipients: + gvanrossum, rhettinger, pje, mmcewen-g
2019-11-26 01:21:02gvanrossumsetmessageid: <1574731262.73.0.265805701384.issue38911@roundup.psfhosted.org>
2019-11-26 01:21:02gvanrossumlinkissue38911 messages
2019-11-26 01:21:02gvanrossumcreate