Index: Doc/library/types.rst =================================================================== --- Doc/library/types.rst (revision 61570) +++ 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 61570) +++ Lib/types.py (working copy) @@ -52,6 +52,13 @@ yield 1 GeneratorType = type(_g()) +def f(x=None): + def g(): + x + return g +CellType = type(f().func_closure[0]) +del f + class _C: def _m(self): pass ClassType = type(_C)