Skip to content

Commit 7626a5b

Browse files
committed
Clarify NameError exception in 'del'
1 parent 7168e98 commit 7626a5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,7 @@ 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 :exc:`NameError` exception.
470469

471470
.. index:: pair: attribute; deletion
472471

0 commit comments

Comments
 (0)