Tin mới
A code block is executed in an execution frame. A frame contains some administrative information (used for debugging) and determines where and how execution continues after the code block’s execution has completed.
A code block is executed in an execution frame. A frame contains some administrative information (used for debugging) and determines where and how execution continues after the code block’s execution has completed.
Names refer to objects. Names are introduced by name binding operations.
Names refer to objects. Names are introduced by name binding operations.
A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained w
the FAQ entry on UnboundLocalError
A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained w
builtins: The module that provides the built-in namespace.
A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained w
A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained w
While annotation scopes have an internal name, that name is not reflected in the qualified name of objects defined within the scope. Instead, the __qualname__ of such objects is as if the object were defined in the enclo
threading: Thread-based parallelism.
A Python implementation won’t necessarily implement the runtime layers distinctly or even concretely. The only exception is places where distinct layers are directly specified or exposed to users, like through the thread
The same conceptual layers apply to each Python program, with some extra data layers specific to Python:
os: Miscellaneous operating system interfaces.
The same conceptual layers apply to each Python program, with some extra data layers specific to Python:
subprocess: Subprocess management.
The same conceptual layers apply to each Python program, with some extra data layers specific to Python:
multiprocessing: Process-based parallelism.
The same conceptual layers apply to each Python program, with some extra data layers specific to Python:
concurrent.interpreters: Multiple interpreters in the same process
The same conceptual layers apply to each Python program, with some extra data layers specific to Python:
The same conceptual layers apply to each Python program, with some extra data layers specific to Python: