summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-01-01 06:11:16 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2020-01-01 06:11:16 (GMT)
commit22424c02e51fab3b62cbe255d0b87d1b55b9a6c3 (patch)
tree845026263c37042a864723d5d8f89fb6f3a6ff52 /Doc
parent37143a8e3b2e9245d52f4ddebbdd1c6121c96884 (diff)
downloadcpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.zip
cpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.tar.gz
cpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.tar.bz2
Document CodeType.replace (GH-17776)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/types.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 9393f9e..3529c2b 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -132,7 +132,7 @@ Standard names are defined for the following types:
.. versionadded:: 3.6
-.. data:: CodeType
+.. class:: CodeType(**kwargs)
.. index:: builtin: compile
@@ -143,6 +143,12 @@ Standard names are defined for the following types:
Note that the audited arguments may not match the names or positions
required by the initializer.
+ .. method:: CodeType.replace(**kwargs)
+
+ Return a copy of the code object with new values for the specified fields.
+
+ .. versionadded:: 3.8
+
.. data:: CellType
The type for cell objects: such objects are used as containers for