summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorPierre Glaser <pierreglaser@msn.com>2019-02-07 19:36:48 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2019-02-07 19:36:48 (GMT)
commitdf8d2cde63c865446468351f8f648e1c7bd45109 (patch)
tree1cc555d57319990602a4987cbf21ee225c4ff2a1 /Doc/library
parentf289084c83190cc72db4a70c58f007ec62e75247 (diff)
downloadcpython-df8d2cde63c865446468351f8f648e1c7bd45109.zip
cpython-df8d2cde63c865446468351f8f648e1c7bd45109.tar.gz
cpython-df8d2cde63c865446468351f8f648e1c7bd45109.tar.bz2
bpo-35911: add cell constructor (GH-11771)
Add a cell constructor, expose the cell type in the types module.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/types.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index b19aa02..07c3a2e 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -136,6 +136,14 @@ Standard names are defined for the following types:
The type for code objects such as returned by :func:`compile`.
+.. data:: CellType
+
+ The type for cell objects: such objects are used as containers for
+ a function's free variables.
+
+ .. versionadded:: 3.8
+
+
.. data:: MethodType
The type of methods of user-defined class instances.