Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator object should be mentioned in gc module document #55555

Closed
atsuoishimoto mannequin opened this issue Feb 27, 2011 · 3 comments
Closed

Generator object should be mentioned in gc module document #55555

atsuoishimoto mannequin opened this issue Feb 27, 2011 · 3 comments
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@atsuoishimoto
Copy link
Mannequin

atsuoishimoto mannequin commented Feb 27, 2011

BPO 11346
Nosy @atsuoishimoto, @pitrou, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-11-06.08:20:48.080>
created_at = <Date 2011-02-27.15:03:12.574>
labels = ['type-feature', 'docs']
title = 'Generator object should be mentioned in gc module document'
updated_at = <Date 2020-11-06.08:20:48.079>
user = 'https://github.com/atsuoishimoto'

bugs.python.org fields:

activity = <Date 2020-11-06.08:20:48.079>
actor = 'methane'
assignee = 'docs@python'
closed = True
closed_date = <Date 2020-11-06.08:20:48.080>
closer = 'methane'
components = ['Documentation']
creation = <Date 2011-02-27.15:03:12.574>
creator = 'ishimoto'
dependencies = []
files = []
hgrepos = []
issue_num = 11346
keywords = []
message_count = 3.0
messages = ['129631', '129668', '380387']
nosy_count = 4.0
nosy_names = ['ishimoto', 'pitrou', 'docs@python', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue11346'
versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

@atsuoishimoto
Copy link
Mannequin Author

atsuoishimoto mannequin commented Feb 27, 2011

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.

@atsuoishimoto atsuoishimoto mannequin added the docs Documentation in the Doc dir label Feb 27, 2011
@atsuoishimoto
Copy link
Mannequin Author

atsuoishimoto mannequin commented Feb 27, 2011

Oh, Not only try-finally block, generators contains try-except or with block will be added to gc.garbage.

@ezio-melotti ezio-melotti added the type-feature A feature request or enhancement label Jan 6, 2013
@iritkatriel
Copy link
Member

This section is very different now: https://docs.python.org/3/library/gc.html#gc.garbage

Should this be closed as out of date?

@methane methane closed this as completed Nov 6, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants