mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Document CodeType.replace (GH-17776)
This commit is contained in:
parent
37143a8e3b
commit
22424c02e5
3 changed files with 11 additions and 5 deletions
4
Objects/clinic/codeobject.c.h
generated
4
Objects/clinic/codeobject.c.h
generated
|
|
@ -11,7 +11,7 @@ PyDoc_STRVAR(code_replace__doc__,
|
|||
" co_lnotab=None)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return a new code object with new specified fields.");
|
||||
"Return a copy of the code object with new values for the specified fields.");
|
||||
|
||||
#define CODE_REPLACE_METHODDEF \
|
||||
{"replace", (PyCFunction)(void(*)(void))code_replace, METH_FASTCALL|METH_KEYWORDS, code_replace__doc__},
|
||||
|
|
@ -253,4 +253,4 @@ skip_optional_kwonly:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=fade581d6313a0c2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=27fe34e82106b220 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue