mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
gh-115572: Move codeobject.replace()
docs to the data model (#115631)
This commit is contained in:
parent
371c970886
commit
0c80da4c14
2 changed files with 9 additions and 9 deletions
|
@ -1292,6 +1292,14 @@ Methods on code objects
|
|||
:pep:`626` - Precise line numbers for debugging and other tools.
|
||||
The PEP that introduced the :meth:`!co_lines` method.
|
||||
|
||||
.. method:: codeobject.replace(**kwargs)
|
||||
|
||||
Return a copy of the code object with new values for the specified fields.
|
||||
|
||||
Code objects are also supported by the generic function :func:`copy.replace`.
|
||||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
|
||||
.. _frame-objects:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue