René's URL Explorer Experiment


Title: gh-145119: Allow frozendict to be assigned to instance __dict__ by mohsinm-dev · Pull Request #145123 · python/cpython · GitHub

Open Graph Title: gh-145119: Allow frozendict to be assigned to instance __dict__ by mohsinm-dev · Pull Request #145123 · python/cpython

X Title: gh-145119: Allow frozendict to be assigned to instance __dict__ by mohsinm-dev · Pull Request #145123 · python/cpython

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

Open Graph Description: Allow frozendict (and its subclasses) to be assigned to an instance's __dict__, enabling immutable instances. Changes: _PyObject_SetDict: accept frozendict via PyAnyDict_Check _PyDict_SetItem_...

X Description: Allow frozendict (and its subclasses) to be assigned to an instance's __dict__, enabling immutable instances. Changes: _PyObject_SetDict: accept frozendict via PyAnyDict_Check _PyDict_SetI...

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

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:8f90c36e-abb5-eff9-6403-ef0a15d9cfb0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC0B0:13C54:53135CF:759EF70:6A4FF7FB
html-safe-noncec12172e927d8220d5bd6f6e2d529377a4c8530c8a086b552efacd8287ee2adf7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEIwOjEzQzU0OjUzMTM1Q0Y6NzU5RUY3MDo2QTRGRjdGQiIsInZpc2l0b3JfaWQiOiI2OTQ3MzMzNjk3Mjc3MjYxODE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbb6ac6fcf8f75efd32efbe3579d12be656fb7777973505a98fec2116757c0c42
hovercard-subject-tagpull_request:3313474171
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/145123/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0d2a192435d5c7a14e6f55fef4d1efe3513d23fdca8b0669cdc515ce12f73dca/python/cpython/pull/145123
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0d2a192435d5c7a14e6f55fef4d1efe3513d23fdca8b0669cdc515ce12f73dca/python/cpython/pull/145123
og:image:altAllow frozendict (and its subclasses) to be assigned to an instance's __dict__, enabling immutable instances. Changes: _PyObject_SetDict: accept frozendict via PyAnyDict_Check _PyDict_SetItem_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemohsinm-dev
hostnamegithub.com
expected-hostnamegithub.com
None3bd0ff5d28a87b4801a63fb38c2a21a91b0a700dca159dc9416aeae05771b899
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
release67a336083e4dcb40224dc2c01cd4c7ed413bdb09
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145123#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145123
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%2F145123
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/145123
Reloadhttps://github.com/python/cpython/pull/145123
Reloadhttps://github.com/python/cpython/pull/145123
Please reload this pagehttps://github.com/python/cpython/pull/145123
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145123
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k 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
mohsinm-devhttps://github.com/mohsinm-dev
python:mainhttps://github.com/python/cpython/tree/main
mohsinm-dev:gh-145119-frozendict-instance-dicthttps://github.com/mohsinm-dev/cpython/tree/gh-145119-frozendict-instance-dict
Conversationhttps://github.com/python/cpython/pull/145123
Commits2 (2)https://github.com/python/cpython/pull/145123/commits
Checkshttps://github.com/python/cpython/pull/145123/checks
Files changedhttps://github.com/python/cpython/pull/145123/files
gh-145119: Allow frozendict to be assigned to instance __dict__https://github.com/python/cpython/pull/145123#top
mohsinm-devhttps://github.com/mohsinm-dev
python:mainhttps://github.com/python/cpython/tree/main
mohsinm-dev:gh-145119-frozendict-instance-dicthttps://github.com/mohsinm-dev/cpython/tree/gh-145119-frozendict-instance-dict
https://github.com/mohsinm-dev
mohsinm-devhttps://github.com/mohsinm-dev
Feb 22, 2026https://github.com/python/cpython/pull/145123#issue-3975218560
Please reload this pagehttps://github.com/python/cpython/pull/145123
Consider allowing frozendicts to be assigned to instance dicts #145119https://github.com/python/cpython/issues/145119
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/mohsinm-dev
mohsinm-devhttps://github.com/mohsinm-dev
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/fd01372d4e509b2cbec708adcf7cdf6f7c1c1298/.github/CODEOWNERS#L214
February 22, 2026 18:56https://github.com/python/cpython/pull/145123#event-22984492251
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 22, 2026https://github.com/python/cpython/pull/145123#event-22984492803
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Feb 22, 2026 https://github.com/python/cpython/pull/145123#ref-issue-3974880295
Consider allowing frozendicts to be assigned to instance dicts #145119 https://github.com/python/cpython/issues/145119
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Feb 22, 2026 https://github.com/python/cpython/pull/145123#pullrequestreview-3838479098
View reviewed changes https://github.com/python/cpython/pull/145123/files
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/python/cpython/pull/145123#pullrequestreview-3838479098
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Your team has set up Codex to review pull requests in this repohttp://chatgpt.com/codex/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/python/cpython/pull/145123
Objects/typeobject.chttps://github.com/python/cpython/pull/145123/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Feb 22, 2026https://github.com/python/cpython/pull/145123#discussion_r2838385513
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/f2c1aacb361ddd3a0e9f9cacdb84fab050de434017f6747bb916e31e29bdf03d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/mohsinm-dev
pythongh-145119https://github.com/python/cpython/issues/145119
: Allow frozendict to be assigned to instance __dict__https://github.com/python/cpython/pull/145123/commits/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
8d6ec8dhttps://github.com/python/cpython/pull/145123/commits/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
https://github.com/mohsinm-dev
mohsinm-devhttps://github.com/mohsinm-dev
force-pushedhttps://github.com/python/cpython/compare/6b702cf72b81e9fea3b8ee6b6c47723fe4654b12..8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
6b702cfhttps://github.com/python/cpython/commit/6b702cf72b81e9fea3b8ee6b6c47723fe4654b12
8d6ec8dhttps://github.com/python/cpython/commit/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
Compare https://github.com/python/cpython/compare/6b702cf72b81e9fea3b8ee6b6c47723fe4654b12..8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
February 22, 2026 19:22https://github.com/python/cpython/pull/145123#event-22984690024
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Mar 4, 2026https://github.com/python/cpython/pull/145123#issuecomment-3995148410
please avoid squashing or amending history and then force-pushing to the PRhttps://devguide.python.org/getting-started/pull-request-lifecycle/#don-t-force-push
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026 https://github.com/python/cpython/pull/145123#pullrequestreview-3892816148
View reviewed changes https://github.com/python/cpython/pull/145123/files/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
Objects/typeobject.chttps://github.com/python/cpython/pull/145123/files/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145123#discussion_r2886846991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#145517https://github.com/python/cpython/pull/145517
Please reload this pagehttps://github.com/python/cpython/pull/145123
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145123#discussion_r2891617903
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/145123
Objects/typeobject.chttps://github.com/python/cpython/pull/145123/files/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145123#discussion_r2886853435
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/mohsinm-dev
Update __dict__ assignment error messagehttps://github.com/python/cpython/pull/145123/commits/80137825a11433dea15529a2ed0dca43f7e17d0b
8013782https://github.com/python/cpython/pull/145123/commits/80137825a11433dea15529a2ed0dca43f7e17d0b
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026 https://github.com/python/cpython/pull/145123#ref-pullrequest-4023916097
gh-141510: Always return a dict in PyDict_Copy() #145517 https://github.com/python/cpython/pull/145517
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026https://github.com/python/cpython/pull/145123#issuecomment-4006956394
gh-145564https://github.com/python/cpython/pull/145564
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Mar 5, 2026 https://github.com/python/cpython/pull/145123#ref-pullrequest-4029950553
gh-141510: Raise TypeError in PyDict_SetItem() on frozendict #145564 https://github.com/python/cpython/pull/145564
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Mar 8, 2026https://github.com/python/cpython/pull/145123#issuecomment-4019964432
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Mar 8, 2026https://github.com/python/cpython/pull/145123#event-23376779094
https://github.com/mohsinm-dev
mohsinm-devhttps://github.com/mohsinm-dev
March 9, 2026 01:30https://github.com/python/cpython/pull/145123#event-23380111728
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%2F145123
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/145123/files/8d6ec8dff3b0b9f2d6d1a05af27a1c9726f50846
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connector[bot] https://github.com/apps/chatgpt-codex-connector
https://github.com/python/cpython/pull/145123/files/6b702cf72b81e9fea3b8ee6b6c47723fe4654b12
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/methane
methane https://github.com/methane
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/145123
https://github.com/mohsinm-dev
https://github.com/skirpichev
https://github.com/vstinner
https://github.com/StanFromIreland
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.