Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Doc: Clarify del statement doc #138871

@adorilson

Description

@adorilson

Documentation

The del statement doc says:

Deletion of a name removes the binding of that name from the local or global namespace, depending on whether the name occurs in a global statement in the same code block.
If the name is unbound, a NameError exception will be raised.

The last sentence is confusing; it could be better, something like

If you access an unbound name, an exception NameError will be raised.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc direasy

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions