mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix some issues found by Jacques Ducasse on the docs list.
This commit is contained in:
parent
f8754a60a8
commit
482b151caf
2 changed files with 9 additions and 16 deletions
|
@ -146,16 +146,12 @@ Assignment of an object to a single target is recursively defined as follows.
|
|||
* Otherwise: the name is bound to the object in the global namespace or the
|
||||
outer namespace determined by :keyword:`nonlocal`, respectively.
|
||||
|
||||
.. index:: single: destructor
|
||||
|
||||
The name is rebound if it was already bound. This may cause the reference
|
||||
count for the object previously bound to the name to reach zero, causing the
|
||||
object to be deallocated and its destructor (if it has one) to be called.
|
||||
|
||||
.. index:: single: destructor
|
||||
|
||||
The name is rebound if it was already bound. This may cause the reference count
|
||||
for the object previously bound to the name to reach zero, causing the object to
|
||||
be deallocated and its destructor (if it has one) to be called.
|
||||
|
||||
* If the target is a target list enclosed in parentheses or in square brackets:
|
||||
The object must be an iterable with the same number of items as there are
|
||||
targets in the target list, and its items are assigned, from left to right,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue