mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add :term: for generators.
This commit is contained in:
parent
bb75e4e5d2
commit
cf3fb25932
17 changed files with 47 additions and 46 deletions
|
@ -152,9 +152,9 @@ The following exceptions are the exceptions that are actually raised.
|
|||
|
||||
.. exception:: GeneratorExit
|
||||
|
||||
Raise when a generator's :meth:`close` method is called. It directly inherits
|
||||
from :exc:`Exception` instead of :exc:`StandardError` since it is technically
|
||||
not an error.
|
||||
Raise when a :term:`generator`\'s :meth:`close` method is called. It
|
||||
directly inherits from :exc:`Exception` instead of :exc:`StandardError` since
|
||||
it is technically not an error.
|
||||
|
||||
.. versionadded:: 2.5
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue