This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: In generator's .close() docstring there is one argument
Type: Stage: resolved
Components: Documentation Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, py.user, python-dev
Priority: normal Keywords:

Created on 2012-05-03 22:18 by py.user, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg159882 - (view) Author: py.user (py.user) * Date: 2012-05-03 22:18
>>> g
<generator object f at 0xb74d257c>
>>> print(g.close.__doc__)
close(arg) -> raise GeneratorExit inside generator.
>>> g.close(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: close() takes no arguments (1 given)
>>>
msg159885 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-03 22:44
New changeset b8c1cabcd115 by Benjamin Peterson in branch '3.2':
close() doesn't take any args (closes #14717)
http://hg.python.org/cpython/rev/b8c1cabcd115

New changeset b2031eb95dd9 by Benjamin Peterson in branch '2.7':
close() doesn't take any args (closes #14717)
http://hg.python.org/cpython/rev/b2031eb95dd9

New changeset da12cb2461d1 by Benjamin Peterson in branch 'default':
merge 3.2 (#14717)
http://hg.python.org/cpython/rev/da12cb2461d1
History
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58922
2012-05-03 22:44:39python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg159885

resolution: fixed
stage: resolved
2012-05-03 22:18:34py.usercreate