summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
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 /Objects/codeobject.c
parent37143a8e3b2e9245d52f4ddebbdd1c6121c96884 (diff)
downloadcpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.zip
cpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.tar.gz
cpython-22424c02e51fab3b62cbe255d0b87d1b55b9a6c3.tar.bz2
Document CodeType.replace (GH-17776)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index f0b62ec..522e1a9 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -610,7 +610,7 @@ code.replace
co_name: unicode(c_default="self->co_name") = None
co_lnotab: PyBytesObject(c_default="(PyBytesObject *)self->co_lnotab") = None
-Return a new code object with new specified fields.
+Return a copy of the code object with new values for the specified fields.
[clinic start generated code]*/
static PyObject *
@@ -622,7 +622,7 @@ code_replace_impl(PyCodeObject *self, int co_argcount,
PyObject *co_varnames, PyObject *co_freevars,
PyObject *co_cellvars, PyObject *co_filename,
PyObject *co_name, PyBytesObject *co_lnotab)
-/*[clinic end generated code: output=25c8e303913bcace input=77189e46579ec426]*/
+/*[clinic end generated code: output=25c8e303913bcace input=d9051bc8f24e6b28]*/
{
#define CHECK_INT_ARG(ARG) \
if (ARG < 0) { \