René's URL Explorer Experiment


Title: gh-108751: Add copy.replace() function by serhiy-storchaka · Pull Request #108752 · python/cpython · GitHub

Open Graph Title: gh-108751: Add copy.replace() function by serhiy-storchaka · Pull Request #108752 · python/cpython

X Title: gh-108751: Add copy.replace() function by serhiy-storchaka · Pull Request #108752 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: 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 ...

X Description: 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() ...

Opengraph URL: https://github.com/python/cpython/pull/108752

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5d648517-0e30-14d9-caac-602d193e382a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8FE:15E965:876D0:BBD18:6B00521A
html-safe-nonce44b00cadf4d54fc79b3632f980cf3ca02e3b55a79026e0a6b8a0c1ec73a35553
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEZFOjE1RTk2NTo4NzZEMDpCQkQxODo2QjAwNTIxQSIsInZpc2l0b3JfaWQiOiIzNTQ4ODYxODYxMzU1MDgyMjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2a2bf5520924f44a6010cec9aa41a8704a20cfcd5c490e6203ff764fd75bd943
hovercard-subject-tagpull_request:1498625656
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/108752/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c4251d9229e533e6520a9a37f4fc48567d5b24b01cc5aa8885359cd5be806213/python/cpython/pull/108752
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c4251d9229e533e6520a9a37f4fc48567d5b24b01cc5aa8885359cd5be806213/python/cpython/pull/108752
og:image:altIt 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/108752#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108752
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108752
Sign uphttps://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
Reloadhttps://github.com/python/cpython/pull/108752
Reloadhttps://github.com/python/cpython/pull/108752
Reloadhttps://github.com/python/cpython/pull/108752
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:copy-replacehttps://github.com/serhiy-storchaka/cpython/tree/copy-replace
Conversationhttps://github.com/python/cpython/pull/108752
Commits2 (2)https://github.com/python/cpython/pull/108752/commits
Checkshttps://github.com/python/cpython/pull/108752/checks
Files changedhttps://github.com/python/cpython/pull/108752/files
gh-108751: Add copy.replace() functionhttps://github.com/python/cpython/pull/108752#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:copy-replacehttps://github.com/serhiy-storchaka/cpython/tree/copy-replace
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 1, 2023https://github.com/python/cpython/pull/108752#issue-1877156219
Please reload this pagehttps://github.com/python/cpython/pull/108752
Add generalized replace() function #108751https://github.com/python/cpython/issues/108751
https://cpython-previews--108752.org.readthedocs.build/https://cpython-previews--108752.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
abalkinhttps://github.com/abalkin
ericvsmithhttps://github.com/ericvsmith
markshannonhttps://github.com/markshannon
pgansslehttps://github.com/pganssle
rhettingerhttps://github.com/rhettinger
code ownershttps://github.com/python/cpython/blob/844f4c2e12a7c637d1de93dbbb0718be06553510/.github/CODEOWNERS#L77
September 1, 2023 10:19https://github.com/python/cpython/pull/108752#event-10255691808
https://github.com/bedevere-bot
bedevere-bothttps://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-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 1, 2023https://github.com/python/cpython/pull/108752#event-10255692669
https://github.com/serhiy-storchaka
pythongh-108751https://github.com/python/cpython/issues/108751
: Add copy.replace() functionhttps://github.com/python/cpython/pull/108752/commits/07dd17c31c89c3e8d54315d2d7f00fafaf759518
07dd17chttps://github.com/python/cpython/pull/108752/commits/07dd17c31c89c3e8d54315d2d7f00fafaf759518
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
force-pushedhttps://github.com/python/cpython/compare/e0d9d265ef268761b348d51a52c4546425377a7d..07dd17c31c89c3e8d54315d2d7f00fafaf759518
e0d9d26https://github.com/python/cpython/commit/e0d9d265ef268761b348d51a52c4546425377a7d
07dd17chttps://github.com/python/cpython/commit/07dd17c31c89c3e8d54315d2d7f00fafaf759518
Compare https://github.com/python/cpython/compare/e0d9d265ef268761b348d51a52c4546425377a7d..07dd17c31c89c3e8d54315d2d7f00fafaf759518
September 1, 2023 11:16https://github.com/python/cpython/pull/108752#event-10256155634
https://github.com/merwok
merwokhttps://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.rsthttps://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518#diff-0196620941ae9d915d6c736188b56cbc63e85e5da760c8d1eb292ee979da392e
merwokhttps://github.com/merwok
Sep 1, 2023https://github.com/python/cpython/pull/108752#discussion_r1313067508
Please reload this pagehttps://github.com/python/cpython/pull/108752
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108752
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 1, 2023https://github.com/python/cpython/pull/108752#discussion_r1313369490
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/merwok
merwokhttps://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.pyhttps://github.com/python/cpython/pull/108752/files/07dd17c31c89c3e8d54315d2d7f00fafaf759518#diff-a06198e13686594114a45e7863b954a226ce08d43f724079faa7fe8b3c931703
merwokhttps://github.com/merwok
Sep 1, 2023https://github.com/python/cpython/pull/108752#discussion_r1313112870
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/rhettinger
rhettingerhttps://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-bothttps://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, 2023https://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
989d565https://github.com/python/cpython/pull/108752/commits/989d565a91ba74dd3d31ee89ac7d48a80a5f920b
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
6f3c138https://github.com/python/cpython/commit/6f3c138dfa868b32d3288898923bbfa388f2fa5d
Sep 6, 2023https://github.com/python/cpython/pull/108752#event-10300506674
https://github.com/bedevere-bot
bedevere-bothttps://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, 2023https://github.com/python/cpython/pull/108752#event-10300507043
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
September 6, 2023 20:55https://github.com/python/cpython/pull/108752#event-10300507152
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 6, 2023https://github.com/python/cpython/pull/108752#issuecomment-1709104730
@rhettingerhttps://github.com/rhettinger
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
rhettingerhttps://github.com/rhettinger
September 6, 2023 20:55https://github.com/python/cpython/pull/108752#event-10300507491
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 7, 2023https://github.com/python/cpython/pull/108752#issuecomment-1709444297
#109052https://github.com/python/cpython/issues/109052
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/sobolevn
sobolevnhttps://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
csm10495https://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.rsthttps://github.com/python/cpython/pull/108752/files/989d565a91ba74dd3d31ee89ac7d48a80a5f920b#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
csm10495https://github.com/csm10495
Sep 29, 2023https://github.com/python/cpython/pull/108752#discussion_r1340775659
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108752
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2023https://github.com/python/cpython/pull/108752#discussion_r1341784974
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 29, 2023https://github.com/python/cpython/pull/108752#issuecomment-1740206489
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 29, 2023https://github.com/python/cpython/pull/108752#issuecomment-1740208517
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2023https://github.com/python/cpython/pull/108752#issuecomment-1741477219
Please reload this pagehttps://github.com/python/cpython/pull/108752
https://github.com/XuehaiPan
XuehaiPanhttps://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
pschanelyhttps://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-muotohttps://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
pygeekhttps://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-muotohttps://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-Englandhttps://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 freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://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 pagehttps://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
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.