[docs] [issue14717] In generator's .close() docstring there is one argument

py.user report at bugs.python.org
Fri May 4 00:18:35 CEST 2012


New submission from py.user <bugzilla-mail-box at 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 at python
components: Documentation
messages: 159882
nosy: docs at 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 at bugs.python.org>
<http://bugs.python.org/issue14717>
_______________________________________


More information about the docs mailing list