types.py module has different helpers to get their types, like async def _c(): pass to get coroutine type or def _g(): yield 1 to get generator type, etc.
It has has these line to get CellType:
cpython/Lib/types.py
Lines 18 to 23 in 9625de6
Afterward, all helpers are deleted, except _cell_factory, which I think should be fixed. It is not good to expose such implementation details.
And this line agrees with me:
Line 63 in 9625de6
Related:
pythongh-96415: Remove `types._cell_factory` from a module namespace
pythongh-96415: Remove `types._cell_factory` from a module namespace (p…
Activity
pythongh-96415: Remove `types._cell_factory` from a module namespace
pythongh-96415: Remove `types._cell_factory` from a module namespace (p…
pythongh-96415: Remove `types._cell_factory` from a module namespace (p…