Add :term: for generators.

This commit is contained in:
Georg Brandl 2007-10-21 10:52:38 +00:00
parent bb75e4e5d2
commit cf3fb25932
17 changed files with 47 additions and 46 deletions

View file

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