mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-138871: Clarify NameError exception in 'del' (#138881)
This commit is contained in:
parent
3e06cfcaee
commit
481588ad4c
1 changed files with 2 additions and 2 deletions
|
|
@ -465,8 +465,8 @@ Deletion of a target list recursively deletes each target, from left to right.
|
|||
|
||||
Deletion of a name removes the binding of that name from the local or global
|
||||
namespace, depending on whether the name occurs in a :keyword:`global` statement
|
||||
in the same code block. If the name is unbound, a :exc:`NameError` exception
|
||||
will be raised.
|
||||
in the same code block. Trying to delete an unbound name raises a
|
||||
:exc:`NameError` exception.
|
||||
|
||||
.. index:: pair: attribute; deletion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue