René's URL Explorer Experiment


Title: gh-103092: Isolate `_decimal` by CharlieZhao95 · Pull Request #103381 · python/cpython · GitHub

Open Graph Title: gh-103092: Isolate `_decimal` by CharlieZhao95 · Pull Request #103381 · python/cpython

X Title: gh-103092: Isolate `_decimal` by CharlieZhao95 · Pull Request #103381 · python/cpython

Description: This PR is based on @erlend-aasland 's great work. Currently, most of the test cases can be passed, but still some work needs to be done. I make this PR as a draft so anyone can remind me of missing work or improve this code. TODO Test references leak and performance Solve compilation warnings Convert cond_map to heap type (not recorded in global-to-fix, but it seems like we should handle it) Adapt multi-phase initialization Remove redundant code and improve some dirty code Issue: gh-103092

Open Graph Description: This PR is based on @erlend-aasland 's great work. Currently, most of the test cases can be passed, but still some work needs to be done. I make this PR as a draft so anyone can remind me of mi...

X Description: This PR is based on @erlend-aasland 's great work. Currently, most of the test cases can be passed, but still some work needs to be done. I make this PR as a draft so anyone can remind me o...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c4a630ce-e1ee-695f-c98d-36ac22f565c1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AAA:861EA:17B9C74:1FDD4E5:6969BCBB
html-safe-noncebcafaa617ec930735dff29f91f21749671f49dfe2474d1bb408c21337897eb22
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUFBOjg2MUVBOjE3QjlDNzQ6MUZERDRFNTo2OTY5QkNCQiIsInZpc2l0b3JfaWQiOiI3MjE1MTgwOTY2MDgwOTIwNzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac36ea0add925513f27d95c3cb222c75a318d0641e23a84421b3eaf362a96a308f
hovercard-subject-tagpull_request:1306548698
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/103381/files
twitter:imagehttps://avatars.githubusercontent.com/u/68189100?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/68189100?s=400&v=4
og:image:altThis PR is based on @erlend-aasland 's great work. Currently, most of the test cases can be passed, but still some work needs to be done. I make this PR as a draft so anyone can remind me of mi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103381/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103381%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F103381%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/103381/files
Reloadhttps://github.com/python/cpython/pull/103381/files
Reloadhttps://github.com/python/cpython/pull/103381/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
CharlieZhao95https://github.com/CharlieZhao95
python:mainhttps://github.com/python/cpython/tree/main
CharlieZhao95:isolate-decimalhttps://github.com/CharlieZhao95/cpython/tree/isolate-decimal
Conversation 13 https://github.com/python/cpython/pull/103381
Commits 30 https://github.com/python/cpython/pull/103381/commits
Checks 0 https://github.com/python/cpython/pull/103381/checks
Files changed https://github.com/python/cpython/pull/103381/files
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
gh-103092: Isolate _decimal https://github.com/python/cpython/pull/103381/files#top
Show all changes 30 commits https://github.com/python/cpython/pull/103381/files
60902dd Establish global state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/60902dd614acf67f15459b4373fece832244dbda
fa06750 Adapt PyDecContextManager_Type to heap type and add it to state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/fa06750b7ad6926130c0a2ef90d0f3c491d17bd1
f19c14c fixup! Adapt PyDecContextManager_Type to heap type and add it to state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/f19c14cbdc1db67639770afca06ccc5c830a28af
cde5da9 Adapt PyDecContext_Type to heap type and add it to state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/cde5da93138f1ac519b7fe3c863d772dccbd108c
90955ab Adapt PyDecSignalDictMixin_Type to heap type and add it to state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/90955ab252054a271f59dc8b0d19b29bc708ab87
ae2ac48 fixup! Adapt PyDecSignalDictMixin_Type to heap type and add it to state erlend-aasland Mar 12, 2023 https://github.com/python/cpython/pull/103381/commits/ae2ac48e99162db477915424c14d51c3ae4a59ee
eee3ef7 Adapt and add PyDec_Type & PyDecSignalDict_Type erlend-aasland Mar 14, 2023 https://github.com/python/cpython/pull/103381/commits/eee3ef746abb8f590fcca8cee694fe27c0d4d69a
f9c3573 Add DecimalTuple to state erlend-aasland Mar 14, 2023 https://github.com/python/cpython/pull/103381/commits/f9c3573c7d0f2d497d0e6bd3e901e23892042e65
57316db fixup! Add DecimalTuple to state erlend-aasland Mar 14, 2023 https://github.com/python/cpython/pull/103381/commits/57316db77b9ad85463d7bd85c7630853406f555a
30e4128 Add DecimalException to state erlend-aasland Mar 14, 2023 https://github.com/python/cpython/pull/103381/commits/30e4128c68b2a12455d4dc92bc948f398afe9882
f92e385 fixup! Add DecimalException to state erlend-aasland Mar 14, 2023 https://github.com/python/cpython/pull/103381/commits/f92e385c974514a75ed0e144f315f90f605125c5
8b6c0c7 Add `basic_context_template` to state CharlieZhao95 Mar 30, 2023 https://github.com/python/cpython/pull/103381/commits/8b6c0c70b1a7f5a0306285a315a4f647e1bc1073
2ea6d98 Add `extended_context_template` to state CharlieZhao95 Mar 30, 2023 https://github.com/python/cpython/pull/103381/commits/2ea6d98cf2c995f9ef0cfcacd413d69e772cd52c
7bf48be Add `default_context_template` to state CharlieZhao95 Mar 30, 2023 https://github.com/python/cpython/pull/103381/commits/7bf48be862091791fa7d58efff724e51fbc8c640
cd41d2c Add context var to state CharlieZhao95 Mar 31, 2023 https://github.com/python/cpython/pull/103381/commits/cd41d2c034024fa1105a90f091c374ed6947f373
44b0843 fixup! Add default_context_template to state CharlieZhao95 Mar 31, 2023 https://github.com/python/cpython/pull/103381/commits/44b08438b8fd37b80cc32beb334a5f37c771ba28
db7b988 Add round_map to state CharlieZhao95 Mar 31, 2023 https://github.com/python/cpython/pull/103381/commits/db7b9885093df325b1ad096b56593e3d4456dc5a
86170a2 Add `Rational` and `SignalTuple` to state CharlieZhao95 Mar 31, 2023 https://github.com/python/cpython/pull/103381/commits/86170a2f306dec8fbc653fca5051b449c21e3c99
bc8df8f Add external C-API functions to state CharlieZhao95 Apr 3, 2023 https://github.com/python/cpython/pull/103381/commits/bc8df8fd726a8aaacd90d41e476d78edb7c4c13b
4ff1074 port _decimal module to multi-initialization CharlieZhao95 Apr 3, 2023 https://github.com/python/cpython/pull/103381/commits/4ff1074b2c964e2dc09b4d0b2a0389339612b2a4
8fba9e8 Move global state to module state CharlieZhao95 Apr 3, 2023 https://github.com/python/cpython/pull/103381/commits/8fba9e87431f9e9f1228a9a4043a610bb8579347
be7fa2a Add `signal_map` to state to fix error in `decimal.Context`. CharlieZhao95 Apr 8, 2023 https://github.com/python/cpython/pull/103381/commits/be7fa2aebb827da9664cf31ebe1100f01b9df5e8
b130f56 solve warnings and remove redundant code CharlieZhao95 Apr 11, 2023 https://github.com/python/cpython/pull/103381/commits/b130f56bd978f1a4e8845a6705deb9fdbddb1b72
39fe618 Merge branch 'main' into isolate-decimal erlend-aasland Apr 14, 2023 https://github.com/python/cpython/pull/103381/commits/39fe61840f898b9d1e0b7a3014b167f69bc172f9
a81da37 remove NDEBUG and static-local variables CharlieZhao95 Apr 20, 2023 https://github.com/python/cpython/pull/103381/commits/a81da377c43d8a868f0de5cf8407403b01d71f6b
6638ca7 Add a NEWS entry. CharlieZhao95 Apr 21, 2023 https://github.com/python/cpython/pull/103381/commits/6638ca7ab2d90ff7d71192bcc68c1ad98ce2af80
7b05a94 Merge remote-tracking branch 'upstream/main' into isolate-decimal CharlieZhao95 May 25, 2023 https://github.com/python/cpython/pull/103381/commits/7b05a949e4530ce4db6d342642544271e9d87337
68473a0 Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED CharlieZhao95 May 25, 2023 https://github.com/python/cpython/pull/103381/commits/68473a0356366a4c5811508bf5192f63e510a7ad
e00dc55 Merge branch 'main' into isolate-decimal kumaraditya303 May 28, 2023 https://github.com/python/cpython/pull/103381/commits/e00dc55d54c8e9756e8af225c471365e69711f92
58f0049 Update Modules/_decimal/_decimal.c CharlieZhao95 May 28, 2023 https://github.com/python/cpython/pull/103381/commits/58f0049dee98eb53f8217163f298534bf7145ab3
Clear filters https://github.com/python/cpython/pull/103381/files
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
2023-04-20-20-27-20.gh-issue-103092.vVf2IH.rst https://github.com/python/cpython/pull/103381/files#diff-dc5893e13f2980e9130fe8ef5317ebd4c796e9b3df79424d35d5b40d29770e2c
_decimal.c https://github.com/python/cpython/pull/103381/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
globals-to-fix.tsv https://github.com/python/cpython/pull/103381/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19
Misc/NEWS.d/next/Core and Builtins/2023-04-20-20-27-20.gh-issue-103092.vVf2IH.rsthttps://github.com/python/cpython/pull/103381/files#diff-dc5893e13f2980e9130fe8ef5317ebd4c796e9b3df79424d35d5b40d29770e2c
View file https://github.com/CharlieZhao95/cpython/blob/58f0049dee98eb53f8217163f298534bf7145ab3/Misc/NEWS.d/next/Core%20and%20Builtins/2023-04-20-20-27-20.gh-issue-103092.vVf2IH.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/103381/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/103381/files
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.