mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
gh-117764: Add docstrings and signatures for the __replace__ methods (GH-117768)
This commit is contained in:
parent
deb921f851
commit
6e05537676
4 changed files with 14 additions and 6 deletions
|
@ -2170,7 +2170,8 @@ static struct PyMethodDef code_methods[] = {
|
|||
{"co_positions", (PyCFunction)code_positionsiterator, METH_NOARGS},
|
||||
CODE_REPLACE_METHODDEF
|
||||
CODE__VARNAME_FROM_OPARG_METHODDEF
|
||||
{"__replace__", _PyCFunction_CAST(code_replace), METH_FASTCALL|METH_KEYWORDS},
|
||||
{"__replace__", _PyCFunction_CAST(code_replace), METH_FASTCALL|METH_KEYWORDS,
|
||||
PyDoc_STR("__replace__($self, /, **changes)\n--\n\nThe same as replace().")},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue