René's URL Explorer Experiment


Title: gh-141510: Always return a dict in PyDict_Copy() by vstinner · Pull Request #145517 · python/cpython · GitHub

Open Graph Title: gh-141510: Always return a dict in PyDict_Copy() by vstinner · Pull Request #145517 · python/cpython

X Title: gh-141510: Always return a dict in PyDict_Copy() by vstinner · Pull Request #145517 · python/cpython

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

Open Graph Description: PyDict_Copy() now also returns a dict if the argument is a frozendict. Remove _PyDict_CopyAsDict() function. Fix frozendict.items() ^ frozendict.items(). Add non-regression test. Issue: PEP 814...

X Description: PyDict_Copy() now also returns a dict if the argument is a frozendict. Remove _PyDict_CopyAsDict() function. Fix frozendict.items() ^ frozendict.items(). Add non-regression test. Issue: PEP 814...

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

X: @github

direct link

Domain: github.com

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:92ef9a23-61c5-0b88-dca1-8c0b2d6000eb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AB6:1EE5:8C8F4F:C9B447:6A4F942F
html-safe-noncef1c23b63ecfdcdde880dc0e35ca77aaaa071ac8c81f7a12bc639e35e185f9bb7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUI2OjFFRTU6OEM4RjRGOkM5QjQ0Nzo2QTRGOTQyRiIsInZpc2l0b3JfaWQiOiI1NjA5MDE4NjUzNzMzMjYyMzgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf7ffeb88c893b0944cd214f0c79a2a0f8820d9da98d201f9c8a110732fefa65f
hovercard-subject-tagpull_request:3355049512
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/145517/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d13f9305941841c0170d7eadcea9de9ea388203c42792c56b929ce58c5259c14/python/cpython/pull/145517
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d13f9305941841c0170d7eadcea9de9ea388203c42792c56b929ce58c5259c14/python/cpython/pull/145517
og:image:altPyDict_Copy() now also returns a dict if the argument is a frozendict. Remove _PyDict_CopyAsDict() function. Fix frozendict.items() ^ frozendict.items(). Add non-regression test. Issue: PEP 814...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145517#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145517
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%2F145517
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
Reloadhttps://github.com/python/cpython/pull/145517
Reloadhttps://github.com/python/cpython/pull/145517
Reloadhttps://github.com/python/cpython/pull/145517
Please reload this pagehttps://github.com/python/cpython/pull/145517
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145517
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:dict_copy2https://github.com/vstinner/cpython/tree/dict_copy2
Conversationhttps://github.com/python/cpython/pull/145517
Commits4 (4)https://github.com/python/cpython/pull/145517/commits
Checkshttps://github.com/python/cpython/pull/145517/checks
Files changedhttps://github.com/python/cpython/pull/145517/files
gh-141510: Always return a dict in PyDict_Copy()https://github.com/python/cpython/pull/145517#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:dict_copy2https://github.com/vstinner/cpython/tree/dict_copy2
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 4, 2026https://github.com/python/cpython/pull/145517#issue-4023916097
Please reload this pagehttps://github.com/python/cpython/pull/145517
PEP 814: Add built-in frozendict type #141510https://github.com/python/cpython/issues/141510
https://cpython-previews--145517.org.readthedocs.build/https://cpython-previews--145517.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
pythongh-141510https://github.com/python/cpython/issues/141510
: Always return a dict in PyDict_Copy()https://github.com/python/cpython/pull/145517/commits/0cbef898526f73a63895d068ea4e0defe514c324
0cbef89https://github.com/python/cpython/pull/145517/commits/0cbef898526f73a63895d068ea4e0defe514c324
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
ZeroIntensityhttps://github.com/ZeroIntensity
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/a51b1b512de1d56b3714b65628a2eae2b07e535e/.github/CODEOWNERS#L114
March 4, 2026 20:12https://github.com/python/cpython/pull/145517#event-23272339835
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 4, 2026https://github.com/python/cpython/pull/145517#event-23272340375
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 4, 2026 https://github.com/python/cpython/pull/145517#ref-issue-3621218426
PEP 814: Add built-in frozendict type #141510 https://github.com/python/cpython/issues/141510
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 4, 2026https://github.com/python/cpython/pull/145517#event-23272348128
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 4, 2026 https://github.com/python/cpython/pull/145517#ref-pullrequest-3994874858
gh-141510: Update PyDict_Copy documentation with note on frozendict #145249 https://github.com/python/cpython/pull/145249
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 4, 2026https://github.com/python/cpython/pull/145517#issuecomment-4000047183
gh-145508https://github.com/python/cpython/pull/145508
@corona10https://github.com/corona10
@ZeroIntensityhttps://github.com/ZeroIntensity
@eendebakpthttps://github.com/eendebakpt
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
Run make clinichttps://github.com/python/cpython/pull/145517/commits/3662ec87822ff1b40f1d48c37077c439cf38ca04
3662ec8https://github.com/python/cpython/pull/145517/commits/3662ec87822ff1b40f1d48c37077c439cf38ca04
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 4, 2026 https://github.com/python/cpython/pull/145517#ref-pullrequest-4023678526
gh-145056: Accept frozendict in xml.etree #145508 https://github.com/python/cpython/pull/145508
https://github.com/vstinner
Add more testshttps://github.com/python/cpython/pull/145517/commits/91e9506df7c80f54aee4f053a3306e5c4633c2d6
91e9506https://github.com/python/cpython/pull/145517/commits/91e9506df7c80f54aee4f053a3306e5c4633c2d6
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 4, 2026https://github.com/python/cpython/pull/145517#issuecomment-4000288540
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026 https://github.com/python/cpython/pull/145517#ref-pullrequest-3975218560
gh-145119: Allow frozendict to be assigned to instance __dict__ #145123 https://github.com/python/cpython/pull/145123
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4001669084
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004245485
95f56b1https://github.com/python/cpython/commit/95f56b120623f17990be81379661de270e95e3c5
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
Complete PyDict_Copy() documentationhttps://github.com/python/cpython/pull/145517/commits/de6b0b7f39dbd247ac8836109535952764513a33
de6b0b7https://github.com/python/cpython/pull/145517/commits/de6b0b7f39dbd247ac8836109535952764513a33
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004263921
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004290357
gh-145123https://github.com/python/cpython/pull/145123
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004371284
#145531https://github.com/python/cpython/pull/145531
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/corona10
corona10https://github.com/corona10
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004412808
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/corona10
corona10https://github.com/corona10
Mar 5, 2026 https://github.com/python/cpython/pull/145517#pullrequestreview-3895864015
View reviewed changes https://github.com/python/cpython/pull/145517/files/de6b0b7f39dbd247ac8836109535952764513a33
Objects/dictobject.chttps://github.com/python/cpython/pull/145517/files/de6b0b7f39dbd247ac8836109535952764513a33#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
corona10https://github.com/corona10
Mar 5, 2026https://github.com/python/cpython/pull/145517#discussion_r2889435255
Please reload this pagehttps://github.com/python/cpython/pull/145517
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/145517
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#discussion_r2889559673
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
gh-145531https://github.com/python/cpython/pull/145531
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4004555862
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4005084713
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#issuecomment-4005104398
@ZeroIntensityhttps://github.com/ZeroIntensity
@StanFromIrelandhttps://github.com/StanFromIreland
gh-145542https://github.com/python/cpython/pull/145542
gh-145531https://github.com/python/cpython/pull/145531
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145517#event-23298009612
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
March 5, 2026 13:35https://github.com/python/cpython/pull/145517#event-23298015449
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%2F145517
https://github.com/corona10
corona10 https://github.com/corona10
https://github.com/python/cpython/pull/145517/files/de6b0b7f39dbd247ac8836109535952764513a33
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/methane
methane https://github.com/methane
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/145517
https://github.com/vstinner
https://github.com/ZeroIntensity
https://github.com/corona10
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.