Skip to content

Commit 481588a

Browse files
authored
gh-138871: Clarify NameError exception in 'del' (#138881)
1 parent 3e06cfc commit 481588a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ Deletion of a target list recursively deletes each target, from left to right.
465465

466466
Deletion of a name removes the binding of that name from the local or global
467467
namespace, depending on whether the name occurs in a :keyword:`global` statement
468-
in the same code block. If the name is unbound, a :exc:`NameError` exception
469-
will be raised.
468+
in the same code block. Trying to delete an unbound name raises a
469+
:exc:`NameError` exception.
470470

471471
.. index:: pair: attribute; deletion
472472

0 commit comments

Comments
 (0)