On this page
types.CellType
Prev: types.CapsuleType | Up: types | Next: types.ClassMethodDescriptorType
Rel: types.AsyncGeneratorType, types.BuiltinFunctionType, types.BuiltinMethodType, types.CapsuleType
Ref: docs.python.org — types.CellType
Tags: #public #python3 #stdlib #types
Import
import types
from types import CellType
Signature & Overview
types.CellType(...)
Create a new cell object.
Usage
import types
cell = types.CellType(42)
assert cell.cell_contents == 42
Gotchas
- Represents closure cell variables stored in
fn.__closure__.
REPL Inspect
from types import CellType
help(CellType)
Linked from
Related notes
- tuts/python3/stdlib_module/types/AsyncGeneratorType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/BuiltinFunctionType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/BuiltinMethodType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CapsuleType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/ClassMethodDescriptorType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib/stdint_stdbool_and_limits shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CodeType shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/coroutine shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CoroutineType shared tags: #stdlib, #types