On this page
  1. types.CellType
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from types import CellType
help(CellType)

Linked from

Related notes