Index: Doc/library/types.rst =================================================================== --- Doc/library/types.rst (revision 61558) +++ Doc/library/types.rst (working copy) @@ -72,8 +72,12 @@ The type of floating point numbers (e.g. ``1.0``); alias of the built-in :class:`float`. + +.. data:: CellType + The type of cell objects. + .. data:: ComplexType The type of complex numbers (e.g. ``1.0j``). This is not defined if Python was Index: Lib/types.py =================================================================== --- Lib/types.py (revision 61558) +++ Lib/types.py (working copy) @@ -96,6 +96,7 @@ else: GetSetDescriptorType = type(_types.Helper.getter) MemberDescriptorType = type(_types.Helper.member) + CellType = _types.CellType del _types del sys, _f, _g, _C, _x # Not for export Index: Modules/_typesmodule.c =================================================================== --- Modules/_typesmodule.c (revision 61558) +++ Modules/_typesmodule.c (working copy) @@ -5,6 +5,7 @@ #include "Python.h" #include "structmember.h" +#include "cellobject.h" typedef struct { @@ -88,6 +89,8 @@ Py_INCREF(&HelperType); PyModule_AddObject(m, "Helper", (PyObject *)&HelperType); + Py_INCREF(&PyCell_Type); + PyModule_AddObject(m, "CellType", (PyObject *)&PyCell_Type); }