Mailing List Archive

[issue14717] In generator's .close() docstring there is one argument
New submission from py.user <bugzilla-mail-box@yandex.ru>:

>>> 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)
>>>

----------
assignee: docs@python
components: Documentation
messages: 159882
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: In generator's .close() docstring there is one argument
versions: Python 3.2

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14717>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14717] In generator's .close() docstring there is one argument [ In reply to ]
Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment:

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

----------
nosy: +python-dev
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14717>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com