### Bug description: ``codeobject.replace`` function was introduced in a9f05d69ccbf3c75cdd604c25094282697789a62, but there's only a note in ``Doc/whatsnew``. My folk @daler-sz would like to work on a fix :) ### CPython versions tested on: 3.11, 3.12, 3.13 ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-115631 * gh-115632 * gh-115633 <!-- /gh-linked-prs -->