New submission from Atsuo Ishimoto firstname.lastname@example.org:
In the gc.garbage of the library ref of gc module,
... this list contains only objects with __del__() methods.
This is not true, since gc.garbage will contain generator object with try-finally block.
---------- assignee: docs@python components: Documentation messages: 129631 nosy: docs@python, ishimoto priority: normal severity: normal status: open title: Generator object should be mentioned in gc module document
Atsuo Ishimoto email@example.com added the comment:
Oh, Not only try-finally block, generators contains try-except or with block will be added to gc.garbage.
Changes by Ezio Melotti firstname.lastname@example.org:
---------- nosy: +pitrou stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
Irit Katriel email@example.com added the comment:
This section is very different now: https://docs.python.org/3/library/gc.html#gc.garbage
Should this be closed as out of date?
---------- nosy: +iritkatriel
Change by Inada Naoki firstname.lastname@example.org:
---------- resolution: -> out of date stage: needs patch -> resolved status: open -> closed