| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:5d648517-0e30-14d9-caac-602d193e382a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8FE:15E965:876D0:BBD18:6B00521A |
| html-safe-nonce | 44b00cadf4d54fc79b3632f980cf3ca02e3b55a79026e0a6b8a0c1ec73a35553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEZFOjE1RTk2NTo4NzZEMDpCQkQxODo2QjAwNTIxQSIsInZpc2l0b3JfaWQiOiIzNTQ4ODYxODYxMzU1MDgyMjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a2bf5520924f44a6010cec9aa41a8704a20cfcd5c490e6203ff764fd75bd943 |
| hovercard-subject-tag | pull_request:1498625656 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/108752/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/c4251d9229e533e6520a9a37f4fc48567d5b24b01cc5aa8885359cd5be806213/python/cpython/pull/108752 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4251d9229e533e6520a9a37f4fc48567d5b24b01cc5aa8885359cd5be806213/python/cpython/pull/108752 |
| og:image:alt | It creates a modified copy of an object by calling the object's __replace__() method.
It is a generalization of dataclasses.replace(), named tuple's _replace() method and replace() methods ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/108752#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108752 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108752 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/108752 |
| Reload | https://github.com/python/cpython/pull/108752 |
| Reload | https://github.com/python/cpython/pull/108752 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| serhiy-storchaka:copy-replace | https://github.com/serhiy-storchaka/cpython/tree/copy-replace |
| Conversation | https://github.com/python/cpython/pull/108752 |
| Commits2 (2) | https://github.com/python/cpython/pull/108752/commits |
| Checks | https://github.com/python/cpython/pull/108752/checks |
| Files changed | https://github.com/python/cpython/pull/108752/files |
| gh-108751: Add copy.replace() function | https://github.com/python/cpython/pull/108752#top |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| serhiy-storchaka:copy-replace | https://github.com/serhiy-storchaka/cpython/tree/copy-replace |
|
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#issue-1877156219 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| Add generalized replace() function #108751 | https://github.com/python/cpython/issues/108751 |
| https://cpython-previews--108752.org.readthedocs.build/ | https://cpython-previews--108752.org.readthedocs.build/ |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| abalkin | https://github.com/abalkin |
| ericvsmith | https://github.com/ericvsmith |
| markshannon | https://github.com/markshannon |
| pganssle | https://github.com/pganssle |
| rhettinger | https://github.com/rhettinger |
| code owners | https://github.com/python/cpython/blob/844f4c2e12a7c637d1de93dbbb0718be06553510/.github/CODEOWNERS#L77 |
| September 1, 2023 10:19 | https://github.com/python/cpython/pull/108752#event-10255691808 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
Sep 1, 2023
| https://github.com/python/cpython/pull/108752#ref-issue-1877143329 |
|
Add generalized replace() function
#108751
| https://github.com/python/cpython/issues/108751 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#event-10255692669 |
|
| https://github.com/serhiy-storchaka |
| pythongh-108751 | https://github.com/python/cpython/issues/108751 |
| : Add copy.replace() function | https://github.com/python/cpython/pull/108752/commits/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| 07dd17c | https://github.com/python/cpython/pull/108752/commits/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| force-pushed | https://github.com/python/cpython/compare/e0d9d265ef268761b348d51a52c4546425377a7d..07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| e0d9d26 | https://github.com/python/cpython/commit/e0d9d265ef268761b348d51a52c4546425377a7d |
| 07dd17c | https://github.com/python/cpython/commit/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
|
Compare
| https://github.com/python/cpython/compare/e0d9d265ef268761b348d51a52c4546425377a7d..07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| September 1, 2023 11:16 | https://github.com/python/cpython/pull/108752#event-10256155634 |
| https://github.com/merwok |
| merwok | https://github.com/merwok |
|
Sep 1, 2023
| https://github.com/python/cpython/pull/108752#pullrequestreview-1607014694 |
|
View reviewed changes
| https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| Doc/library/copy.rst | https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518#diff-0196620941ae9d915d6c736188b56cbc63e85e5da760c8d1eb292ee979da392e |
| merwok | https://github.com/merwok |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#discussion_r1313067508 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#discussion_r1313369490 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/merwok |
| merwok | https://github.com/merwok |
|
Sep 1, 2023
| https://github.com/python/cpython/pull/108752#pullrequestreview-1607079296 |
|
View reviewed changes
| https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| Lib/copy.py | https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703 |
| merwok | https://github.com/merwok |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#discussion_r1313112870 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/rhettinger |
| rhettinger | https://github.com/rhettinger |
|
Sep 1, 2023
| https://github.com/python/cpython/pull/108752#pullrequestreview-1607418606 |
|
View reviewed changes
| https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 1, 2023 | https://github.com/python/cpython/pull/108752#event-10259709051 |
|
| https://github.com/serhiy-storchaka |
| Update Doc/library/copy.rst. | https://github.com/python/cpython/pull/108752/commits/989d565a91ba74dd3d31ee89ac7d48a80a5f920b |
| 989d565 | https://github.com/python/cpython/pull/108752/commits/989d565a91ba74dd3d31ee89ac7d48a80a5f920b |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| 6f3c138 | https://github.com/python/cpython/commit/6f3c138dfa868b32d3288898923bbfa388f2fa5d |
| Sep 6, 2023 | https://github.com/python/cpython/pull/108752#event-10300506674 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Sep 6, 2023 | https://github.com/python/cpython/pull/108752#event-10300507043 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| September 6, 2023 20:55 | https://github.com/python/cpython/pull/108752#event-10300507152 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
| Sep 6, 2023 | https://github.com/python/cpython/pull/108752#issuecomment-1709104730 |
| @rhettinger | https://github.com/rhettinger |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
| rhettinger | https://github.com/rhettinger |
| September 6, 2023 20:55 | https://github.com/python/cpython/pull/108752#event-10300507491 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 7, 2023 | https://github.com/python/cpython/pull/108752#issuecomment-1709444297 |
| #109052 | https://github.com/python/cpython/issues/109052 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/sobolevn |
| sobolevn | https://github.com/sobolevn |
|
Sep 27, 2023
| https://github.com/python/cpython/pull/108752#ref-issue-1915119905 |
|
Also test typing.NamedTuple with copy.replace
#109956
| https://github.com/python/cpython/issues/109956 |
| https://github.com/csm10495 |
| csm10495 | https://github.com/csm10495 |
|
Sep 29, 2023
| https://github.com/python/cpython/pull/108752#pullrequestreview-1649878612 |
|
View reviewed changes
| https://github.com/python/cpython/pull/108752/files/989d565a91ba74dd3d31ee89ac7d48a80a5f920b |
| Doc/whatsnew/3.13.rst | https://github.com/python/cpython/pull/108752/files/989d565a91ba74dd3d31ee89ac7d48a80a5f920b#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f |
| csm10495 | https://github.com/csm10495 |
| Sep 29, 2023 | https://github.com/python/cpython/pull/108752#discussion_r1340775659 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 29, 2023 | https://github.com/python/cpython/pull/108752#discussion_r1341784974 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 29, 2023 | https://github.com/python/cpython/pull/108752#issuecomment-1740206489 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 29, 2023 | https://github.com/python/cpython/pull/108752#issuecomment-1740208517 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/serhiy-storchaka |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Sep 29, 2023 | https://github.com/python/cpython/pull/108752#issuecomment-1741477219 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
| https://github.com/XuehaiPan |
| XuehaiPan | https://github.com/XuehaiPan |
|
Oct 2, 2023
| https://github.com/python/cpython/pull/108752#ref-issue-1922084060 |
|
Add support of PyStructSequence in copy.replace()
#110222
| https://github.com/python/cpython/issues/110222 |
| https://github.com/pschanely |
| pschanely | https://github.com/pschanely |
|
Jan 17, 2024
| https://github.com/python/cpython/pull/108752#ref-issue-2086710404 |
|
Rename dataclass's __replace__ argument from "obj" to "self"?
#114198
| https://github.com/python/cpython/issues/114198 |
| https://github.com/max-muoto |
| max-muoto | https://github.com/max-muoto |
|
Jul 3, 2024
| https://github.com/python/cpython/pull/108752#ref-issue-2387563225 |
|
__replace__ should be synthesized for dataclasses in 3.13
microsoft/pyright#8300
| https://github.com/microsoft/pyright/issues/8300 |
| https://github.com/pygeek |
| pygeek | https://github.com/pygeek |
|
Jul 3, 2024
| https://github.com/python/cpython/pull/108752#ref-issue-2387433013 |
|
3.13 copy.replace isn't in __all__
#121300
| https://github.com/python/cpython/issues/121300 |
| https://github.com/max-muoto |
| max-muoto | https://github.com/max-muoto |
|
Jul 4, 2024
| https://github.com/python/cpython/pull/108752#ref-issue-2391267019 |
|
3.13 Better Document __replace__ on Dataclasses and Named Tuples
#121371
| https://github.com/python/cpython/issues/121371 |
| https://github.com/Jeremiah-England |
| Jeremiah-England | https://github.com/Jeremiah-England |
|
May 20, 2025
| https://github.com/python/cpython/pull/108752#ref-issue-3077856957 |
|
Prefer copy.replace over dataclasses.replace (3.13)
astral-sh/ruff#18229
| https://github.com/astral-sh/ruff/issues/18229 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108752 |
|
| https://github.com/merwok |
|
merwok
| https://github.com/merwok |
|
| https://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518 |
|
| https://github.com/ericvsmith |
|
ericvsmith
| https://github.com/ericvsmith |
|
| https://github.com/pganssle |
|
pganssle
| https://github.com/pganssle |
|
| https://github.com/abalkin |
|
abalkin
| https://github.com/abalkin |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
|
| https://github.com/rhettinger |
|
rhettinger
| https://github.com/rhettinger |
|
| https://github.com/csm10495 |
|
csm10495
| https://github.com/csm10495 |
|
| https://github.com/python/cpython/pull/108752/files/989d565a91ba74dd3d31ee89ac7d48a80a5f920b |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Please reload this page | https://github.com/python/cpython/pull/108752 |
|
| https://github.com/serhiy-storchaka |
|
| https://github.com/bedevere-bot |
|
| https://github.com/vstinner |
|
| https://github.com/merwok |
|
| https://github.com/rhettinger |
|
| https://github.com/csm10495 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |