Message357472
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. |
|
Date |
User |
Action |
Args |
2019-11-26 01:21:02 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, pje, mmcewen-g |
2019-11-26 01:21:02 | gvanrossum | set | messageid: <1574731262.73.0.265805701384.issue38911@roundup.psfhosted.org> |
2019-11-26 01:21:02 | gvanrossum | link | issue38911 messages |
2019-11-26 01:21:02 | gvanrossum | create | |
|