| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e1e6c5ce-f0f8-4cfb-f2ea-47ba24ee10e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C670:1F68:193D938:217CEE6:6B023680 |
| html-safe-nonce | 29b5d1f5ddc2bba4ae01875d307be5441243f420161964440f42772291fb81f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjcwOjFGNjg6MTkzRDkzODoyMTdDRUU2OjZCMDIzNjgwIiwidmlzaXRvcl9pZCI6IjExMzA3OTE3NjA0MjM5NTgxNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b30c49c7627538e7e97be1e737db767e9b2b1d97af3f71eb725023ddd14ecf4f |
| hovercard-subject-tag | issue:2308806728 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/119333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad9fb2554f927e5dca679c188bea82d78fb191b055aaab8526e1fd88dd159833/python/cpython/issues/119333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad9fb2554f927e5dca679c188bea82d78fb191b055aaab8526e1fd88dd159833/python/cpython/issues/119333 |
| og:image:alt | Feature or enhancement Proposal: In python every time a context is switched, two c-api are called. PyContext_Enter(PyObject *); PyContext_Exit(PyObject *); I need a way to know when those api's are... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fried |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/python/cpython/issues/119333#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F119333 |
| 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%2Fcpython%2Fissues%2F119333 |
| 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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/issues/119333 |
| Reload | https://github.com/python/cpython/issues/119333 |
| Reload | https://github.com/python/cpython/issues/119333 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | 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/insights |
| https://github.com/python/cpython |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/119333 |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/119333 |
| Add c-api to set callback function on enter and exit of PyContext | https://github.com/python/cpython/issues/119333#top |
| topic-C-API | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22 |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| https://github.com/fried |
| fried | https://github.com/fried |
| on May 21, 2024 | https://github.com/python/cpython/issues/119333#issue-2308806728 |
| #91054 | https://github.com/python/cpython/issues/91054 |
| https://discuss.python.org/t/request-can-we-get-a-c-api-hook-into-pycontext-enter-and-pycontext-exit/51730 | https://discuss.python.org/t/request-can-we-get-a-c-api-hook-into-pycontext-enter-and-pycontext-exit/51730 |
| @gvanrossum | https://github.com/gvanrossum |
| @itamaro | https://github.com/itamaro |
| gh-119333: Add c-api to have contextvar enter/exit callbacks #119335 | https://github.com/python/cpython/pull/119335 |
| gh-119333: PyContext watchers notify get interp from tstate #124444 | https://github.com/python/cpython/pull/124444 |
| gh-124872: Change PyContext_WatchCallback to take PyObject #124737 | https://github.com/python/cpython/pull/124737 |
| gh-124872: Back up exception before calling PyContext_WatchCallback #124741 | https://github.com/python/cpython/pull/124741 |
| gh-124872: Refine contextvars documentation #124773 | https://github.com/python/cpython/pull/124773 |
| gh-124872: Move PyThreadState to first argument for consistency #124774 | https://github.com/python/cpython/pull/124774 |
| gh-124872: Replace enter/exit events with "switched" #124776 | https://github.com/python/cpython/pull/124776 |
| Next | https://github.com/python/cpython/issues/119333?timeline_page=1 |
| fried | https://github.com/fried |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| on May 21, 2024 | https://github.com/python/cpython/issues/119333#event-12883520484 |
| mdboom | https://github.com/mdboom |
| topic-C-API | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22 |
| on May 22, 2024 | https://github.com/python/cpython/issues/119333#event-12893209143 |
| gvanrossum | https://github.com/gvanrossum |
| on Sep 24, 2024 | https://github.com/python/cpython/issues/119333#event-14374097819 |
| gh-119333: Add C api to have contextvar enter/exit callbacks (#119335) | https://github.com/python/cpython/commit/d87482bc4ee9458d6ba16140e7bc008637dbbb16 |
| gh-119333 | https://github.com/python/cpython/issues/119333 |
| #119335 | https://github.com/python/cpython/pull/119335 |
| d87482b | https://github.com/python/cpython/commit/d87482bc4ee9458d6ba16140e7bc008637dbbb16 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| on Sep 26, 2024 | https://github.com/python/cpython/issues/119333#event-14409874659 |
| gh-119333: get interp from tstate for PyContext watchers(#124444) | https://github.com/python/cpython/commit/46f5cbca4c37c57f718d3de0d7f7ddfc44298535 |
| gh-119333 | https://github.com/python/cpython/issues/119333 |
| #124444 | https://github.com/python/cpython/pull/124444 |
| 46f5cbc | https://github.com/python/cpython/commit/46f5cbca4c37c57f718d3de0d7f7ddfc44298535 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| completed | https://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| on Sep 26, 2024 | https://github.com/python/cpython/issues/119333#event-14409945928 |
| https://github.com/rhansen |
| rhansen | https://github.com/rhansen |
| on Sep 27, 2024 | https://github.com/python/cpython/issues/119333#issuecomment-2380292271 |
| @fried | https://github.com/fried |
| #99633 | https://github.com/python/cpython/issues/99633 |
| #99633 (comment) | https://github.com/python/cpython/issues/99633#issuecomment-2377915344 |
| rhansen | https://github.com/rhansen |
| on Sep 28, 2024 | https://github.com/python/cpython/issues/119333#event-14442908071 |
| pythongh-119333: Change PyContext_WatchCallback to take PyObject | https://github.com/rhansen/cpython/commit/84c233e5da0e833c3777bac276b6f7784f014cc3 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 84c233e | https://github.com/rhansen/cpython/commit/84c233e5da0e833c3777bac276b6f7784f014cc3 |
| pythongh-119333: Change PyContext_WatchCallback to take PyObject | https://github.com/rhansen/cpython/commit/37dae27f22d4182b6e97a7149c114d03647c3991 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 37dae27 | https://github.com/rhansen/cpython/commit/37dae27f22d4182b6e97a7149c114d03647c3991 |
| pythongh-119333: Back up exception before calling PyContext_WatchCall… | https://github.com/rhansen/cpython/commit/1636f1014fa16cc5fc23def724d861d679c98f59 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 1636f10 | https://github.com/rhansen/cpython/commit/1636f1014fa16cc5fc23def724d861d679c98f59 |
| pythongh-119333: Back up exception before calling PyContext_WatchCall… | https://github.com/rhansen/cpython/commit/9e4ea98b2f45e035c47c52d7eb31f3afc8a84a0f |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 9e4ea98 | https://github.com/rhansen/cpython/commit/9e4ea98b2f45e035c47c52d7eb31f3afc8a84a0f |
| pythongh-119333, pythongh-99633: Refine contextvars documentation | https://github.com/rhansen/cpython/commit/c99ca89dc8d20d4f61627a4b06e1b4efd701e084 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| c99ca89 | https://github.com/rhansen/cpython/commit/c99ca89dc8d20d4f61627a4b06e1b4efd701e084 |
| pythongh-119333, pythongh-99633: Refine contextvars documentation | https://github.com/rhansen/cpython/commit/b16f493aecd5ba6ad3ad957f6acd9b5a14d8c860 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| b16f493 | https://github.com/rhansen/cpython/commit/b16f493aecd5ba6ad3ad957f6acd9b5a14d8c860 |
| pythongh-119333: Move PyThreadState to first argument for consistency | https://github.com/rhansen/cpython/commit/efab225f3fc2f0d962d236b2e89df9d6628507ce |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| efab225 | https://github.com/rhansen/cpython/commit/efab225f3fc2f0d962d236b2e89df9d6628507ce |
| pythongh-119333: Change PyContext_WatchCallback to take PyObject | https://github.com/rhansen/cpython/commit/c1a51a818bf947791def5954e8e61d76bb4434c7 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| c1a51a8 | https://github.com/rhansen/cpython/commit/c1a51a818bf947791def5954e8e61d76bb4434c7 |
| pythongh-119333: Change PyContext_WatchCallback return type to void | https://github.com/rhansen/cpython/commit/66fdcf5e82d27e3aea1e526fed5131d2a2151742 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 66fdcf5 | https://github.com/rhansen/cpython/commit/66fdcf5e82d27e3aea1e526fed5131d2a2151742 |
| rhansen | https://github.com/rhansen |
| on Sep 30, 2024 | https://github.com/python/cpython/issues/119333#event-14447713295 |
| pythongh-119333, pythongh-99633: Replace enter/exit events with "swit… | https://github.com/rhansen/cpython/commit/b55f4cf65b711918a5d9641dc9236026e599830a |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| b55f4cf | https://github.com/rhansen/cpython/commit/b55f4cf65b711918a5d9641dc9236026e599830a |
| fixup! pythongh-119333: Back up exception before calling PyContext_Wa… | https://github.com/rhansen/cpython/commit/ffa8cc854dacb1a86f22f54e260437f5e84298a7 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| ffa8cc8 | https://github.com/rhansen/cpython/commit/ffa8cc854dacb1a86f22f54e260437f5e84298a7 |
| Merge branch 'pythongh-119333-exception' into HEAD | https://github.com/rhansen/cpython/commit/32fd02a8c91daa97e02ae2768b74ecd8694fdb8e |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 32fd02a | https://github.com/rhansen/cpython/commit/32fd02a8c91daa97e02ae2768b74ecd8694fdb8e |
| Merge branch 'pythongh-119333-99633-docs' into HEAD | https://github.com/rhansen/cpython/commit/f1b30e30f1ba0565545f082a0fb1484812fca559 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| f1b30e3 | https://github.com/rhansen/cpython/commit/f1b30e30f1ba0565545f082a0fb1484812fca559 |
| Merge branch 'pythongh-119333-notify' into HEAD | https://github.com/rhansen/cpython/commit/a8e24526efdc6a5a38d52338ba4d38a9f3597fba |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| a8e2452 | https://github.com/rhansen/cpython/commit/a8e24526efdc6a5a38d52338ba4d38a9f3597fba |
| pythongh-119333, pythongh-99633: Replace enter/exit events with "swit… | https://github.com/rhansen/cpython/commit/00396e03d2d999de77f79270a41c1280cc4f03ed |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| 00396e0 | https://github.com/rhansen/cpython/commit/00396e03d2d999de77f79270a41c1280cc4f03ed |
| fixup! pythongh-119333: Back up exception before calling PyContext_Wa… | https://github.com/rhansen/cpython/commit/212948c1e123f5de2f748c13c528e762b7257e07 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 212948c | https://github.com/rhansen/cpython/commit/212948c1e123f5de2f748c13c528e762b7257e07 |
| Merge branch 'pythongh-119333-exception' into HEAD | https://github.com/rhansen/cpython/commit/cea403fd84fe941f561ef9cba4f87681041360cd |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| cea403f | https://github.com/rhansen/cpython/commit/cea403fd84fe941f561ef9cba4f87681041360cd |
| Merge branch 'pythongh-119333-99633-docs' into HEAD | https://github.com/rhansen/cpython/commit/1bb5210408c1a586b8fb16f092ee05ae36c87841 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 1bb5210 | https://github.com/rhansen/cpython/commit/1bb5210408c1a586b8fb16f092ee05ae36c87841 |
| Merge branch 'pythongh-119333-notify' into HEAD | https://github.com/rhansen/cpython/commit/ebac5692034d1ace09cc791288979738863b8efd |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| ebac569 | https://github.com/rhansen/cpython/commit/ebac5692034d1ace09cc791288979738863b8efd |
| pythongh-119333, pythongh-99633: Replace enter/exit events with "swit… | https://github.com/rhansen/cpython/commit/0b18cf1cff4f0293b99cd09942397bea50f3785f |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| 0b18cf1 | https://github.com/rhansen/cpython/commit/0b18cf1cff4f0293b99cd09942397bea50f3785f |
| pythongh-119333, pythongh-99633: Replace enter/exit events with "swit… | https://github.com/rhansen/cpython/commit/8242dce86d3e1180633141032c622b4648c27116 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| pythongh-99633 | https://github.com/python/cpython/issues/99633 |
| 8242dce | https://github.com/rhansen/cpython/commit/8242dce86d3e1180633141032c622b4648c27116 |
| Merge branch 'pythongh-119333-exception' into HEAD | https://github.com/rhansen/cpython/commit/1656f3c43080496202eaa23cd1111d0264b30bfc |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 1656f3c | https://github.com/rhansen/cpython/commit/1656f3c43080496202eaa23cd1111d0264b30bfc |
| Merge branch 'pythongh-119333-99633-docs' into HEAD | https://github.com/rhansen/cpython/commit/2aff41a602efbc0bd5c7fa89aefba6dc88d12679 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 2aff41a | https://github.com/rhansen/cpython/commit/2aff41a602efbc0bd5c7fa89aefba6dc88d12679 |
| Merge branch 'pythongh-119333-notify' into HEAD | https://github.com/rhansen/cpython/commit/029a0c99cec4c61da72d8850cf3490b7e4840657 |
| pythongh-119333 | https://github.com/python/cpython/issues/119333 |
| 029a0c9 | https://github.com/rhansen/cpython/commit/029a0c99cec4c61da72d8850cf3490b7e4840657 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/python/cpython/issues/119333 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/python/cpython/issues/119333 |
| topic-C-API | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22 |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
|
| 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 |