New submission from Atsuo Ishimoto email@example.com:
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 firstname.lastname@example.org 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 email@example.com:
---------- nosy: +pitrou stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
Irit Katriel firstname.lastname@example.org 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 email@example.com:
---------- resolution: -> out of date stage: needs patch -> resolved status: open -> closed