René's URL Explorer Experiment


Title: gh-141510: Add PyAnyDict_AsNewDict() function by vstinner · Pull Request #145531 · python/cpython · GitHub

Open Graph Title: gh-141510: Add PyAnyDict_AsNewDict() function by vstinner · Pull Request #145531 · python/cpython

X Title: gh-141510: Add PyAnyDict_AsNewDict() function by vstinner · Pull Request #145531 · python/cpython

Description: Remove internal _PyDict_CopyAsDict() function. Issue: gh-141510 📚 Documentation preview 📚: https://cpython-previews--145531.org.readthedocs.build/

Open Graph Description: Remove internal _PyDict_CopyAsDict() function. Issue: gh-141510 📚 Documentation preview 📚: https://cpython-previews--145531.org.readthedocs.build/

X Description: Remove internal _PyDict_CopyAsDict() function. Issue: gh-141510 📚 Documentation preview 📚: https://cpython-previews--145531.org.readthedocs.build/

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a63eb9a2-c5d2-383b-5c34-0e891dfec217
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFAA:3EE845:66D77CD:901CD35:6A4FBACB
html-safe-nonce312a2068c39ccca1de329d851479b310d2925d21b9b205b0813344dc651d3978
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkFBOjNFRTg0NTo2NkQ3N0NEOjkwMUNEMzU6NkE0RkJBQ0IiLCJ2aXNpdG9yX2lkIjoiMzAyNDM1MzA1NDkyNzMzODE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf0eaeb677c63c1280b7cce3b0e9ebe7773b99c913a25b0abfa8677e39e70d184
hovercard-subject-tagpull_request:3358286364
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/145531/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altRemove internal _PyDict_CopyAsDict() function. Issue: gh-141510 📚 Documentation preview 📚: https://cpython-previews--145531.org.readthedocs.build/
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145531/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145531%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145531%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/145531/files
Reloadhttps://github.com/python/cpython/pull/145531/files
Reloadhttps://github.com/python/cpython/pull/145531/files
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests 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/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:frozendict_copyhttps://github.com/vstinner/cpython/tree/frozendict_copy
Conversation 11 https://github.com/python/cpython/pull/145531
Commits 5 https://github.com/python/cpython/pull/145531/commits
Checks 46 https://github.com/python/cpython/pull/145531/checks
Files changed https://github.com/python/cpython/pull/145531/files
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
gh-141510: Add PyAnyDict_AsNewDict() function https://github.com/python/cpython/pull/145531/files#top
Show all changes 5 commits https://github.com/python/cpython/pull/145531/files
5ba97b6 gh-141510: Add PyFrozenDict_AsDict() function vstinner Mar 5, 2026 https://github.com/python/cpython/pull/145531/commits/5ba97b6daff032e37c934c1e7cb431c95c70eae0
741f013 Fix typo in C API tests vstinner Mar 5, 2026 https://github.com/python/cpython/pull/145531/commits/741f01335c6e0744baac7f1f23b4c7eb75700543
6947aec Merge branch 'main' into frozendict_copy vstinner Mar 5, 2026 https://github.com/python/cpython/pull/145531/commits/6947aecc459f673f743da5eff25972b7e67927dc
9d672ba Merge branch 'main' into frozendict_copy vstinner Mar 5, 2026 https://github.com/python/cpython/pull/145531/commits/9d672ba0b532e0dd6fb7230f0649de9062671ef1
568ca96 Replace the function with PyAnyDict_AsNewDict() vstinner Mar 5, 2026 https://github.com/python/cpython/pull/145531/commits/568ca96e14189ac96809bcb9977226512cf50873
Clear filters https://github.com/python/cpython/pull/145531/files
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
dict.rst https://github.com/python/cpython/pull/145531/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d
dictobject.h https://github.com/python/cpython/pull/145531/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225
pycore_dict.h https://github.com/python/cpython/pull/145531/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
test_dict.py https://github.com/python/cpython/pull/145531/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b
_elementtree.c https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
dict.c https://github.com/python/cpython/pull/145531/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196
dictobject.c https://github.com/python/cpython/pull/145531/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
typeobject.c https://github.com/python/cpython/pull/145531/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114
Doc/c-api/dict.rsthttps://github.com/python/cpython/pull/145531/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Doc/c-api/dict.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d
https://github.com/python/cpython/pull/145531/files#diff-2d1742df4df348dbdf07209a3c375d67320dcea764563f139e3f091b5c48877d
Include/cpython/dictobject.hhttps://github.com/python/cpython/pull/145531/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Include/cpython/dictobject.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-00eae37ba11a15444d047c8a492c8f4ee9b2061bde764c15f5cc60ecf128c225
Include/internal/pycore_dict.hhttps://github.com/python/cpython/pull/145531/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Include/internal/pycore_dict.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
https://github.com/python/cpython/pull/145531/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4
Lib/test/test_capi/test_dict.pyhttps://github.com/python/cpython/pull/145531/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Lib/test/test_capi/test_dict.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-868508372bc6bc420fae7a33d576e9829d3899bf00c1a448b58383a62a61e77b
Modules/_elementtree.chttps://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Modules/_elementtree.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
https://github.com/python/cpython/pull/145531/files#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
Modules/_testcapi/dict.chttps://github.com/python/cpython/pull/145531/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Modules/_testcapi/dict.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196
https://github.com/python/cpython/pull/145531/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196
https://github.com/python/cpython/pull/145531/files#diff-cedc043131e3fe2262aa1f822da8f757ad207070d38ea18d9dca8c09a56fd196
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L215
Objects/dictobject.chttps://github.com/python/cpython/pull/145531/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Objects/dictobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/pull/145531/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L220
Objects/typeobject.chttps://github.com/python/cpython/pull/145531/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
View file https://github.com/vstinner/cpython/blob/568ca96e14189ac96809bcb9977226512cf50873/Objects/typeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/145531/{{ revealButtonHref }}
https://github.com/python/cpython/pull/145531/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/145531/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Please reload this pagehttps://github.com/python/cpython/pull/145531/files
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.