[issue11346] Generator object should be mentioned in gc module document

New submission from Atsuo Ishimoto ishimoto@gembook.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
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue11346 _______________________________________

Atsuo Ishimoto ishimoto@gembook.org added the comment:
Oh, Not only try-finally block, generators contains try-except or with block will be added to gc.garbage.
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue11346 _______________________________________

Changes by Ezio Melotti ezio.melotti@gmail.com:
---------- nosy: +pitrou stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue11346 _______________________________________

Irit Katriel iritkatriel@yahoo.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
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue11346 _______________________________________

Change by Inada Naoki songofacandy@gmail.com:
---------- resolution: -> out of date stage: needs patch -> resolved status: open -> closed
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue11346 _______________________________________
participants (4)
-
Atsuo Ishimoto
-
Ezio Melotti
-
Inada Naoki
-
Irit Katriel