mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove many "versionchanged" items that didn't use the official markup,
but just some text embedded in the docs. Also remove paragraph about implicit relative imports from tutorial.
This commit is contained in:
parent
c73728373c
commit
e6bcc9145e
52 changed files with 147 additions and 469 deletions
|
@ -451,13 +451,11 @@ evaluation stack: enough information is saved so that the next time :meth:`next`
|
|||
is invoked, the function can proceed exactly as if the :keyword:`yield`
|
||||
statement were just another external call.
|
||||
|
||||
As of Python version 2.5, the :keyword:`yield` statement is now allowed in the
|
||||
:keyword:`try` clause of a :keyword:`try` ... :keyword:`finally` construct. If
|
||||
the generator is not resumed before it is finalized (by reaching a zero
|
||||
reference count or by being garbage collected), the generator-iterator's
|
||||
:meth:`close` method will be called, allowing any pending :keyword:`finally`
|
||||
clauses to execute.
|
||||
|
||||
The :keyword:`yield` statement is allowed in the :keyword:`try` clause of a
|
||||
:keyword:`try` ... :keyword:`finally` construct. If the generator is not
|
||||
resumed before it is finalized (by reaching a zero reference count or by being
|
||||
garbage collected), the generator-iterator's :meth:`close` method will be
|
||||
called, allowing any pending :keyword:`finally` clauses to execute.
|
||||
|
||||
.. seealso::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue