| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:08a12af6-5dcd-2661-71c3-d1460f5b3e8a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 85B4:1D7BA0:1E993F:29945B:6B0021C6 |
| html-safe-nonce | 68d01ee638bcf2afad0479795cd463ae23d8cabe330c868c11417c4baf695cd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUI0OjFEN0JBMDoxRTk5M0Y6Mjk5NDVCOjZCMDAyMUM2IiwidmlzaXRvcl9pZCI6IjY4MzY1NTA4MDQ0ODEwNjk1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f5034cee75a7757d85cb1482f7a2ec239fa2a06d5abc8d5b35a3a7f1e69c331 |
| hovercard-subject-tag | pull_request:4016359874 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/21705/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/599dd80817b26c8ecc0cc4d92b2ea23f355cde565a42c3da35798d42c2e560f0/python/mypy/pull/21705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/599dd80817b26c8ecc0cc4d92b2ea23f355cde565a42c3da35798d42c2e560f0/python/mypy/pull/21705 |
| og:image:alt | This fixes memory unsafety when there is a race condition related to attribute get/set operations on a free-threaded build, for simple reference-based attributes only (PyObject *). This includes at... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/mypy/pull/21705#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21705 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21705 |
| 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%2Fmypy |
| Reload | https://github.com/python/mypy/pull/21705 |
| Reload | https://github.com/python/mypy/pull/21705 |
| Reload | https://github.com/python/mypy/pull/21705 |
| python | https://github.com/python |
| mypy | https://github.com/python/mypy |
| Code | https://github.com/python/mypy |
| Issues2.7k (2.7k) | https://github.com/python/mypy/issues |
| Pull requests546 (546) | https://github.com/python/mypy/pulls |
| Actions | https://github.com/python/mypy/actions |
| Projects | https://github.com/python/mypy/projects |
| Wiki | https://github.com/python/mypy/wiki |
| Security and quality | https://github.com/python/mypy/security |
| Insights | https://github.com/python/mypy/insights |
| https://github.com/python/mypy |
| JukkaL | https://github.com/JukkaL |
| master | https://github.com/python/mypy/tree/master |
| mypyc-safe-attr | https://github.com/python/mypy/tree/mypyc-safe-attr |
| Conversation | https://github.com/python/mypy/pull/21705 |
| Commits16 (16) | https://github.com/python/mypy/pull/21705/commits |
| Checks | https://github.com/python/mypy/pull/21705/checks |
| Files changed | https://github.com/python/mypy/pull/21705/files |
| [mypyc] Make attribute access memory safe on free-threaded builds | https://github.com/python/mypy/pull/21705#top |
| JukkaL | https://github.com/JukkaL |
| master | https://github.com/python/mypy/tree/master |
| mypyc-safe-attr | https://github.com/python/mypy/tree/mypyc-safe-attr |
|
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| Jul 8, 2026 | https://github.com/python/mypy/pull/21705#issue-4839698591 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| mypyc/mypyc#1203 | https://github.com/mypyc/mypyc/issues/1203 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| July 8, 2026 12:29 | https://github.com/python/mypy/pull/21705#commits-pushed-f0f0440 |
|
| https://github.com/JukkaL |
| WIP make attribute read safe if there is single writer | https://github.com/python/mypy/pull/21705/commits/f0f044025689497afc5826ea144e70b72b5bda53 |
| f0f0440 | https://github.com/python/mypy/pull/21705/commits/f0f044025689497afc5826ea144e70b72b5bda53 |
|
| https://github.com/JukkaL |
| WIP make attribute writes safe for simple pointer types | https://github.com/python/mypy/pull/21705/commits/f9bcdb4c4ffb666e3fcae3f5287027ee80841a4a |
| f9bcdb4 | https://github.com/python/mypy/pull/21705/commits/f9bcdb4c4ffb666e3fcae3f5287027ee80841a4a |
|
| https://github.com/JukkaL |
| WIP add faster init path + adjust read implementation | https://github.com/python/mypy/pull/21705/commits/141da6e3ad5432f1d96b53c39ab52b4145853ad1 |
| 141da6e | https://github.com/python/mypy/pull/21705/commits/141da6e3ad5432f1d96b53c39ab52b4145853ad1 |
|
| https://github.com/JukkaL |
| Only inline fast path of attr read | https://github.com/python/mypy/pull/21705/commits/dc58f4e73ad52202f7b8e444b52ac72e104035e3 |
| dc58f4e | https://github.com/python/mypy/pull/21705/commits/dc58f4e73ad52202f7b8e444b52ac72e104035e3 |
|
| https://github.com/JukkaL |
| Optimize final attribute reads | https://github.com/python/mypy/pull/21705/commits/5323ad82e2c4c72410876ec0c88393dc859acb59 |
| 5323ad8 | https://github.com/python/mypy/pull/21705/commits/5323ad82e2c4c72410876ec0c88393dc859acb59 |
|
| https://github.com/JukkaL |
| Update comments | https://github.com/python/mypy/pull/21705/commits/fa8e7abcfb34c1f2652a9b4168ae2b5a9e163d9b |
| fa8e7ab | https://github.com/python/mypy/pull/21705/commits/fa8e7abcfb34c1f2652a9b4168ae2b5a9e163d9b |
|
| https://github.com/JukkaL |
| Update comment | https://github.com/python/mypy/pull/21705/commits/95b9fd6c0bdd830c97b73c02908d8b627356f468 |
| 95b9fd6 | https://github.com/python/mypy/pull/21705/commits/95b9fd6c0bdd830c97b73c02908d8b627356f468 |
|
| https://github.com/JukkaL |
| Use CPy_NOINLINE | https://github.com/python/mypy/pull/21705/commits/1bb2e045921198db0b5e19cc527cb4335fcd6518 |
| 1bb2e04 | https://github.com/python/mypy/pull/21705/commits/1bb2e045921198db0b5e19cc527cb4335fcd6518 |
|
| https://github.com/JukkaL |
| Fix another attribute read code path | https://github.com/python/mypy/pull/21705/commits/f650d7ea430f068ab38d9014f8d5a5b1f324fba3 |
| f650d7e | https://github.com/python/mypy/pull/21705/commits/f650d7ea430f068ab38d9014f8d5a5b1f324fba3 |
|
| https://github.com/JukkaL |
| Fix decref of old attribute value | https://github.com/python/mypy/pull/21705/commits/1bf07dcba7b709211fb7398facbd309dcf0e424b |
| 1bf07dc | https://github.com/python/mypy/pull/21705/commits/1bf07dcba7b709211fb7398facbd309dcf0e424b |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| July 8, 2026 17:22 | https://github.com/python/mypy/pull/21705#event-27728087904 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| Jul 8, 2026 | https://github.com/python/mypy/pull/21705#issuecomment-4917430626 |
| @msullivan | https://github.com/msullivan |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| https://github.com/msullivan |
| msullivan | https://github.com/msullivan |
|
Jul 8, 2026
| https://github.com/python/mypy/pull/21705#pullrequestreview-4657332882 |
|
View reviewed changes
| https://github.com/python/mypy/pull/21705/files/1bf07dcba7b709211fb7398facbd309dcf0e424b |
| mypyc/lib-rt/pythonsupport.h | https://github.com/python/mypy/pull/21705/files/1bf07dcba7b709211fb7398facbd309dcf0e424b#diff-af1250dfff0c5bd0ba26f901201826902b3efb6a6b9efa6f280f746da3940b80 |
| msullivan | https://github.com/msullivan |
| Jul 8, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3546729618 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| Jul 9, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3552973365 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| mypyc/lib-rt/pythonsupport.c | https://github.com/python/mypy/pull/21705/files/1bf07dcba7b709211fb7398facbd309dcf0e424b#diff-00f02d80955b9c5161c224d077bb23991d4618e04c3c23f17186884e6287c51b |
| msullivan | https://github.com/msullivan |
| Jul 8, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3546793329 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| Jul 9, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3552967983 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| mypyc/lib-rt/pythonsupport.c | https://github.com/python/mypy/pull/21705/files/1bf07dcba7b709211fb7398facbd309dcf0e424b#diff-00f02d80955b9c5161c224d077bb23991d4618e04c3c23f17186884e6287c51b |
| msullivan | https://github.com/msullivan |
| Jul 8, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3546903931 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| Jul 9, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3552966580 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| July 9, 2026 11:27 | https://github.com/python/mypy/pull/21705#commits-pushed-1495001 |
|
| https://github.com/JukkaL |
| Optimize SetAttrRef -- drop _PyObject_SetMaybeWeakref | https://github.com/python/mypy/pull/21705/commits/149500126d9c999ca682e09cfe2a4ec79575aa4f |
| 1495001 | https://github.com/python/mypy/pull/21705/commits/149500126d9c999ca682e09cfe2a4ec79575aa4f |
|
| https://github.com/JukkaL |
| Remove critical section from get attr slow path | https://github.com/python/mypy/pull/21705/commits/bb82dcede574eca57db65aaa5d49970dc9d82558 |
| bb82dce | https://github.com/python/mypy/pull/21705/commits/bb82dcede574eca57db65aaa5d49970dc9d82558 |
|
| https://github.com/JukkaL |
| Further simplify slow path | https://github.com/python/mypy/pull/21705/commits/c6f345e80dbd9b210b1ecab225ca72434d6e62e7 |
| c6f345e | https://github.com/python/mypy/pull/21705/commits/c6f345e80dbd9b210b1ecab225ca72434d6e62e7 |
|
| https://github.com/JukkaL |
| Update comments | https://github.com/python/mypy/pull/21705/commits/8320eae008271d5fec179cea43aec2130b32e244 |
| 8320eae | https://github.com/python/mypy/pull/21705/commits/8320eae008271d5fec179cea43aec2130b32e244 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| Jul 9, 2026 | https://github.com/python/mypy/pull/21705#issuecomment-4927093471 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| https://github.com/msullivan |
| msullivan | https://github.com/msullivan |
|
Jul 10, 2026
| https://github.com/python/mypy/pull/21705#pullrequestreview-4668837824 |
|
View reviewed changes
| https://github.com/python/mypy/pull/21705/files/8320eae008271d5fec179cea43aec2130b32e244 |
| msullivan | https://github.com/msullivan |
| https://github.com/python/mypy/pull/21705#pullrequestreview-4668837824 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| mypyc/codegen/emitclass.py | https://github.com/python/mypy/pull/21705/files/8320eae008271d5fec179cea43aec2130b32e244#diff-2ebf14883ec1c15fc6962be521fd27028b7e0233ae812a67b04bef644613aa8a |
| msullivan | https://github.com/msullivan |
| Jul 10, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3556633723 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| Jul 10, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3557904888 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| mypyc/lib-rt/pythonsupport.h | https://github.com/python/mypy/pull/21705/files/8320eae008271d5fec179cea43aec2130b32e244#diff-af1250dfff0c5bd0ba26f901201826902b3efb6a6b9efa6f280f746da3940b80 |
| msullivan | https://github.com/msullivan |
| Jul 10, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3556656652 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| JukkaL | https://github.com/JukkaL |
| Jul 10, 2026 | https://github.com/python/mypy/pull/21705#discussion_r3558430725 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| July 10, 2026 09:21 | https://github.com/python/mypy/pull/21705#event-27806297298 |
| JukkaL | https://github.com/JukkaL |
| July 10, 2026 11:51 | https://github.com/python/mypy/pull/21705#commits-pushed-1b73f65 |
|
| https://github.com/JukkaL |
| Update stale comment | https://github.com/python/mypy/pull/21705/commits/1b73f6519ef64acd6701768e50d4de40f2c635e1 |
| 1b73f65 | https://github.com/python/mypy/pull/21705/commits/1b73f6519ef64acd6701768e50d4de40f2c635e1 |
|
| https://github.com/JukkaL |
| Merge branch 'master' into mypyc-safe-attr | https://github.com/python/mypy/pull/21705/commits/18de4e1efd4661f5a8579f0d4f54a2b56ef1fd53 |
| 18de4e1 | https://github.com/python/mypy/pull/21705/commits/18de4e1efd4661f5a8579f0d4f54a2b56ef1fd53 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| d5daed2 | https://github.com/python/mypy/commit/d5daed27b550c034bde1d697d37a64953bc6ec52 |
| Jul 10, 2026 | https://github.com/python/mypy/pull/21705#event-27811033806 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| July 10, 2026 11:29 | https://github.com/python/mypy/pull/21705#event-27811035138 |
| JukkaL | https://github.com/JukkaL |
|
Jul 10, 2026
| https://github.com/python/mypy/pull/21705#ref-commit-a9f62a3 |
|
| https://github.com/JukkaL |
| [mypyc] Make attribute access memory safe on free-threaded builds ( | https://github.com/python/mypy/commit/a9f62a3cf98a58a7a2607b7c81695802b39f5edc |
| #2… | https://github.com/python/mypy/pull/21705 |
| a9f62a3 | https://github.com/python/mypy/commit/a9f62a3cf98a58a7a2607b7c81695802b39f5edc |
| …1705 | https://github.com/python/mypy/pull/21705 |
| mypyc/mypyc#1203 | https://github.com/mypyc/mypyc/issues/1203 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
|
Jul 10, 2026
| https://github.com/python/mypy/pull/21705#ref-issue-4853901524 |
|
Release 2.3 planning
#21717
| https://github.com/python/mypy/issues/21717 |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21705 |
|
| https://github.com/msullivan |
|
msullivan
| https://github.com/msullivan |
|
| https://github.com/python/mypy/pull/21705/files/8320eae008271d5fec179cea43aec2130b32e244 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
| Please reload this page | https://github.com/python/mypy/pull/21705 |
|
| https://github.com/JukkaL |
|
| https://github.com/msullivan |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |