synt.stmt.namespace
¤
Global
¤
Bases: Statement
The global statement.
Examples:
References
Source code in synt/stmt/namespace.py
__init__
¤
|
Initialize a new global statement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
names |
Identifier
|
Global variable names. |
()
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the |
Source code in synt/stmt/namespace.py
Nonlocal
¤
Bases: Statement
The nonlocal statement.
Examples:
References
Source code in synt/stmt/namespace.py
__init__
¤
|
Initialize a new nonlocal statement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
names |
Identifier
|
Nonlocal variable names. |
()
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the |