René's URL Explorer Experiment


Title: dataclasses: frozen dataclasses with slots' `__setattr__` and `__delattr__` does not work. · Issue #105936 · python/cpython · GitHub

Open Graph Title: dataclasses: frozen dataclasses with slots' `__setattr__` and `__delattr__` does not work. · Issue #105936 · python/cpython

X Title: dataclasses: frozen dataclasses with slots' `__setattr__` and `__delattr__` does not work. · Issue #105936 · python/cpython

Description: Bug report The check in frozen dataclasses' __setattr__ and __delattr__ does not work when slots=True: @dataclass(frozen=True, slots=True) class C: i: int C(10).j = 5 crashes with Traceback (most recent call last): File "", line 1...

Open Graph Description: Bug report The check in frozen dataclasses' __setattr__ and __delattr__ does not work when slots=True: @dataclass(frozen=True, slots=True) class C: i: int C(10).j = 5 crashes with Traceback (most r...

X Description: Bug report The check in frozen dataclasses' __setattr__ and __delattr__ does not work when slots=True: @dataclass(frozen=True, slots=True) class C: i: int C(10).j = 5 crashes with Traceback (mo...

Opengraph URL: https://github.com/python/cpython/issues/105936

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dataclasses: frozen dataclasses with slots' `__setattr__` and `__delattr__` does not work.","articleBody":"\r\n\r\n# Bug report\r\n\r\nThe check in frozen dataclasses' `__setattr__` and `__delattr__` does not work when `slots=True`:\r\n\r\n```\r\n@dataclass(frozen=True, slots=True)\r\nclass C:\r\n    i: int\r\n\r\nC(10).j = 5\r\n```\r\ncrashes with\r\n```\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin>\", line 1, in \u003cmodule>\r\n  File \"\u003cstring>\", line 5, in __setattr__\r\nTypeError: super(type, obj): obj must be an instance or subtype of type\r\n```\r\ninstead of raising a FrozenInstanceError.\r\n\r\nLikewise,\r\n\r\n```\r\n@dataclass(frozen=True, slots=True)\r\nclass C:\r\n    i: int\r\n\r\nclass D(C):\r\n    pass\r\n\r\nD(10).j = 5\r\n```\r\n\r\ncrashes with the same error instead of working.\r\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-105937\n* gh-144021\n* gh-148469\n* gh-148476\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/avboag","@type":"Person","name":"avboag"},"datePublished":"2023-06-20T10:06:22Z","url":"https://github.com/python/cpython/issues/105936"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f53798e5-d9ff-df96-47cb-7c96d92feb66
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id839A:29AEE8:3652C03:4853467:6B02086F
html-safe-nonce492db04cd41d9ae64b663f9986de747e81329e150916f84cdf2aa484ce08084a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzlBOjI5QUVFODozNjUyQzAzOjQ4NTM0Njc6NkIwMjA4NkYiLCJ2aXNpdG9yX2lkIjoiODIyOTQ0MzE2MjQxNDkwOTU1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac71a3ba34050e0e3556087dd6f90da8bd374b2c33630cfa16e8d3f4cc2b081527
hovercard-subject-tagissue:1765075985
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/105936/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a59701663f3dee1f043df8b84811b82a00ee65bd1e8f18d3ed722a5c15e267a/python/cpython/issues/105936
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a59701663f3dee1f043df8b84811b82a00ee65bd1e8f18d3ed722a5c15e267a/python/cpython/issues/105936
og:image:altBug report The check in frozen dataclasses' __setattr__ and __delattr__ does not work when slots=True: @dataclass(frozen=True, slots=True) class C: i: int C(10).j = 5 crashes with Traceback (most r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameavboag
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/105936#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F105936
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%2Fissues%2F105936
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/105936
Reloadhttps://github.com/python/cpython/issues/105936
Reloadhttps://github.com/python/cpython/issues/105936
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/105936
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/105936
dataclasses: frozen dataclasses with slots' __setattr__ and __delattr__ does not work.https://github.com/python/cpython/issues/105936#top
https://github.com/gpshead
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/avboag
avboaghttps://github.com/avboag
on Jun 20, 2023https://github.com/python/cpython/issues/105936#issue-1765075985
gh-105936: Fix frozen dataclasses with slots' __setattr__ and __delattr_  #105937https://github.com/python/cpython/pull/105937
gh-105936: Properly update closure cells for __setattr__ and __delattr__ in frozen dataclasses with slots #144021https://github.com/python/cpython/pull/144021
[3.14] gh-105936: Properly update closure cells for __setattr__ and __delattr__ in frozen dataclasses with slots (GH-144021) #148469https://github.com/python/cpython/pull/148469
[3.13] gh-105936: Properly update closure cells for __setattr__ and __delattr__ in frozen dataclasses with slots (GH-144021) #148476https://github.com/python/cpython/pull/148476
avboaghttps://github.com/avboag
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jun 20, 2023https://github.com/python/cpython/issues/105936#event-9577667408
iritkatrielhttps://github.com/iritkatriel
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Nov 26, 2023https://github.com/python/cpython/issues/105936#event-11064209965
gpsheadhttps://github.com/gpshead
on Apr 12, 2026https://github.com/python/cpython/issues/105936#event-24426213753
gh-105936: Properly update closure cells for `__setattr__` and `__del…https://github.com/python/cpython/commit/8a398bfbbc6769f6cabb3177702e7a506e203d61
gh-105936https://github.com/python/cpython/issues/105936
8a398bfhttps://github.com/python/cpython/commit/8a398bfbbc6769f6cabb3177702e7a506e203d61
miss-islingtonhttps://github.com/miss-islington
on Apr 12, 2026https://github.com/python/cpython/issues/105936#event-24426216095
pythongh-105936: Properly update closure cells for `__setattr__` and …https://github.com/miss-islington/cpython/commit/3fcd711ff6a14fa0c6de7dee56ff41947b7d6c11
pythongh-105936https://github.com/python/cpython/issues/105936
3fcd711https://github.com/miss-islington/cpython/commit/3fcd711ff6a14fa0c6de7dee56ff41947b7d6c11
gpsheadhttps://github.com/gpshead
on Apr 12, 2026https://github.com/python/cpython/issues/105936#event-24426293141
pythongh-105936: Properly update closure cells for `__setattr__` and …https://github.com/miss-islington/cpython/commit/6645d06c1a22c76b742d27c91bd12f443046128c
pythongh-105936https://github.com/python/cpython/issues/105936
6645d06https://github.com/miss-islington/cpython/commit/6645d06c1a22c76b742d27c91bd12f443046128c
[3.14] gh-105936: Properly update closure cells for `__setattr__` and…https://github.com/python/cpython/commit/942d3024b399425c53d60c86f456a274522ac58f
gh-105936https://github.com/python/cpython/issues/105936
942d302https://github.com/python/cpython/commit/942d3024b399425c53d60c86f456a274522ac58f
[3.13] pythongh-105936: Properly update closure cells for `__setattr_…https://github.com/gpshead/cpython/commit/aa1e00f711dbdd032dc8d2967893410ba3e2e9e9
pythongh-105936https://github.com/python/cpython/issues/105936
aa1e00fhttps://github.com/gpshead/cpython/commit/aa1e00f711dbdd032dc8d2967893410ba3e2e9e9
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
on Apr 13, 2026https://github.com/python/cpython/issues/105936#issuecomment-4233049984
prakashsellathuraihttps://github.com/prakashsellathurai
on Apr 13, 2026https://github.com/python/cpython/issues/105936#event-24433539507
Revert "pythongh-105936: Properly update closure cells for `__setattr…https://github.com/prakashsellathurai/cpython/commit/cdcefcb4938203f527f64ad44e65cc227697880b
pythongh-105936https://github.com/python/cpython/issues/105936
cdcefcbhttps://github.com/prakashsellathurai/cpython/commit/cdcefcb4938203f527f64ad44e65cc227697880b
ljfphttps://github.com/ljfp
on Apr 25, 2026https://github.com/python/cpython/issues/105936#event-24868339734
pythongh-105936: Properly update closure cells for `__setattr__` and …https://github.com/ljfp/cpython/commit/187221c72821b521a7c1a0addc7f6d89dcb79f43
pythongh-105936https://github.com/python/cpython/issues/105936
187221chttps://github.com/ljfp/cpython/commit/187221c72821b521a7c1a0addc7f6d89dcb79f43
gpsheadhttps://github.com/gpshead
on Apr 26, 2026https://github.com/python/cpython/issues/105936#event-24876022667
[3.13] gh-105936: Properly update closure cells for __setattr__ and _…https://github.com/python/cpython/commit/9651429aa7a882601d80d3069045707202115bcc
gh-105936https://github.com/python/cpython/issues/105936
9651429https://github.com/python/cpython/commit/9651429aa7a882601d80d3069045707202115bcc
gpsheadhttps://github.com/gpshead
on Apr 26, 2026https://github.com/python/cpython/issues/105936#event-24876026820
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
on Apr 26, 2026https://github.com/python/cpython/issues/105936#issuecomment-4321380049
gpsheadhttps://github.com/gpshead
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 26, 2026https://github.com/python/cpython/issues/105936#event-24876031123
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/105936
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/105936
gpsheadhttps://github.com/gpshead
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.