Table of Contents

Python - Name

About

Language - Name (Program Entity) in Python

Names (refer to|are pointer for) objects.

Names are introduced by name binding operations such as during the def process.

Binding operations

identifiers

class definitions

class (these bind the class or name in the defining block)

function definitions

function definitions (these bind the function name in the defining block)

Import

The import statement .

The import statement of the form from … import * binds all names defined in the imported module, except those beginning with an underscore. This form may only be used at the module level.

Scope

Python - Name Scope

NameError

When a name is not found at all, a NameError exception is raised.

Documentation / Reference