Title: Isolate the `_decimal` extension module · Issue #106078 · python/cpython · GitHub
Open Graph Title: Isolate the `_decimal` extension module · Issue #106078 · python/cpython
X Title: Isolate the `_decimal` extension module · Issue #106078 · python/cpython
Description: This issue is used to track the PRs split from gh-103092. Isolate the _decimal extension module by: Establish a global module state and convert static types to heap types Move other global static variables to the global module state(poss...
Open Graph Description: This issue is used to track the PRs split from gh-103092. Isolate the _decimal extension module by: Establish a global module state and convert static types to heap types Move other global static v...
X Description: This issue is used to track the PRs split from gh-103092. Isolate the _decimal extension module by: Establish a global module state and convert static types to heap types Move other global static v...
Opengraph URL: https://github.com/python/cpython/issues/106078
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Isolate the `_decimal` extension module","articleBody":"This issue is used to track the PRs split from [gh-103092](https://github.com/python/cpython/pull/103381). Isolate the `_decimal` extension module by: \r\n\r\n* Establish a global module state and convert static types to heap types\r\n* Move other global static variables to the global module state(possibly multiple PRs)\r\n - [x] DecimalException\r\n - [x] basic_context_template\r\n - [x] tls_context_key\r\n - [x] cached_context\r\n - [x] current_context_var\r\n - [x] default_context_template\r\n - [x] extended_context_template\r\n - [x] round_map\r\n - [x] Rational\r\n - [x] SignalTuple\r\n - [x] External C-API functions\r\n* Convert the global module state to true module state\r\n - [x] signal_map\r\n - [x] cond_map\r\n - [x] convert global state to module state\r\n\r\nSee original issue [Isolate Stdlib Extension Modules](https://github.com/python/cpython/issues/103092) and [PEP-687](https://peps.python.org/pep-0687/) for details.\r\n\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-106079\r\n* gh-106301\r\n* gh-106346\r\n* gh-106395\r\n* gh-106475\r\n* gh-106616\r\n* gh-106880\n* gh-107287\n* gh-107524\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/CharlieZhao95","@type":"Person","name":"CharlieZhao95"},"datePublished":"2023-06-25T08:46:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/106078/cpython/issues/106078"}
| 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:fdaa425f-95b8-be49-0907-ab680c279954 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88F2:2D5987:1049E85:15FF9EB:69699268 |
| html-safe-nonce | f809d57cababc49caa15c15a24ecf8878725edf2a6007299f4cf18d894f11367 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEYyOjJENTk4NzoxMDQ5RTg1OjE1RkY5RUI6Njk2OTkyNjgiLCJ2aXNpdG9yX2lkIjoiMTI3NjAyMTkxNzY4ODEwNzYyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bfcccd4fbb80201e0edeb1fdba99e41d332f1b2e58395ac9b2a14952288593e5 |
| hovercard-subject-tag | issue:1773148369 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/106078/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd594539d1830b39edf305ed829658185930c4f86c27c6baa796059a6e146eae/python/cpython/issues/106078 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd594539d1830b39edf305ed829658185930c4f86c27c6baa796059a6e146eae/python/cpython/issues/106078 |
| og:image:alt | This issue is used to track the PRs split from gh-103092. Isolate the _decimal extension module by: Establish a global module state and convert static types to heap types Move other global static v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CharlieZhao95 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width