René's URL Explorer Experiment


Title: gh-123243: Fix reference leak in _decimal by neonene · Pull Request #123244 · python/cpython · GitHub

Open Graph Title: gh-123243: Fix reference leak in _decimal by neonene · Pull Request #123244 · python/cpython

X Title: gh-123243: Fix reference leak in _decimal by neonene · Pull Request #123244 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: >python -X showrefcount -c "import _decimal" [7117 refs, 4232 blocks] # Before [0 refs, 0 blocks] # After cc @kumaraditya303 @erlend-aasland Issue: _decimal leaks referenc...

X Description: >python -X showrefcount -c "import _decimal" [7117 refs, 4232 blocks] # Before [0 refs, 0 blocks] # After cc @kumaraditya303 @erlend-aasland Issue: _decimal le...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:abb0444c-6191-59e3-5998-a9ad6bc38b18
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB8C:97034:58D2ED:778CF4:6B067FAC
html-safe-nonce39f826dac660682b7e98b661527c82d5e1d67eb2aed53997f6235ea049f263ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjhDOjk3MDM0OjU4RDJFRDo3NzhDRjQ6NkIwNjdGQUMiLCJ2aXNpdG9yX2lkIjoiNzg0Mzk4NDUxODE4NzkwODI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacec5a1a74f86ee16878b9dddd737477c596164eb11e140026d5d23a22bb491dd7
hovercard-subject-tagpull_request:2033002993
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/123244/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a548da481cb95259cd11de97d36c7639800f3ea1aab4f571b422a190ed40ebdb/python/cpython/pull/123244
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a548da481cb95259cd11de97d36c7639800f3ea1aab4f571b422a190ed40ebdb/python/cpython/pull/123244
og:image:alt>python -X showrefcount -c "import _decimal" [7117 refs, 4232 blocks] # Before [0 refs, 0 blocks] # After cc @kumaraditya303 @erlend-aasland Issue: _decimal leaks referenc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameneonene
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-cache
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
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/123244#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123244
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%2Fpull%2F123244
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/123244
Reloadhttps://github.com/python/cpython/pull/123244
Reloadhttps://github.com/python/cpython/pull/123244
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
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
Conversationhttps://github.com/python/cpython/pull/123244
Commits8 (8)https://github.com/python/cpython/pull/123244/commits
Checkshttps://github.com/python/cpython/pull/123244/checks
Files changedhttps://github.com/python/cpython/pull/123244/files
gh-123243: Fix reference leak in _decimalhttps://github.com/python/cpython/pull/123244#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
https://github.com/neonene
neonenehttps://github.com/neonene
Aug 22, 2024https://github.com/python/cpython/pull/123244#issue-2481751616
Please reload this pagehttps://github.com/python/cpython/pull/123244
@kumaraditya303https://github.com/kumaraditya303
@erlend-aaslandhttps://github.com/erlend-aasland
_decimal leaks references #123243https://github.com/python/cpython/issues/123243
Please reload this pagehttps://github.com/python/cpython/pull/123244
neonenehttps://github.com/neonene
August 23, 2024 06:08https://github.com/python/cpython/pull/123244#commits-pushed-fe5b73f
https://github.com/neonene
add GC Trackhttps://github.com/python/cpython/pull/123244/commits/fe5b73f61579f8bf945dab91762311384d9d99cf
fe5b73fhttps://github.com/python/cpython/pull/123244/commits/fe5b73f61579f8bf945dab91762311384d9d99cf
https://github.com/neonene
fix double freehttps://github.com/python/cpython/pull/123244/commits/bfc51af38d830f6cb4820e9a7bc3c22bbb962b0d
bfc51afhttps://github.com/python/cpython/pull/123244/commits/bfc51af38d830f6cb4820e9a7bc3c22bbb962b0d
https://github.com/neonene
fix exception leakhttps://github.com/python/cpython/pull/123244/commits/ee82db6c526b34369623da91ed064aec1bfe2165
ee82db6https://github.com/python/cpython/pull/123244/commits/ee82db6c526b34369623da91ed064aec1bfe2165
https://github.com/neonene
NEWShttps://github.com/python/cpython/pull/123244/commits/d1373d9759cab7e11e1dfc7d8a0781969f766151
d1373d9https://github.com/python/cpython/pull/123244/commits/d1373d9759cab7e11e1dfc7d8a0781969f766151
https://github.com/neonene
neonenehttps://github.com/neonene
rhettingerhttps://github.com/rhettinger
code ownerhttps://github.com/python/cpython/blob/297f2e093ec95800ae2184330b8408c875523467/.github/CODEOWNERS#L208
August 22, 2024 21:17https://github.com/python/cpython/pull/123244#event-13984222212
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 22, 2024 https://github.com/python/cpython/pull/123244#ref-issue-2481726962
_decimal leaks references #123243 https://github.com/python/cpython/issues/123243
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 22, 2024https://github.com/python/cpython/pull/123244#event-13984223479
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
August 23, 2024 00:12https://github.com/python/cpython/pull/123244#event-13985927921
neonenehttps://github.com/neonene
August 23, 2024 11:07https://github.com/python/cpython/pull/123244#commits-pushed-20b668c
https://github.com/neonene
make code more explicithttps://github.com/python/cpython/pull/123244/commits/20b668ced0a4146098dfc5e8bab0f6f7f4aa8989
20b668chttps://github.com/python/cpython/pull/123244/commits/20b668ced0a4146098dfc5e8bab0f6f7f4aa8989
https://github.com/neonene
fix warninghttps://github.com/python/cpython/pull/123244/commits/b6e4279486dd7b8c291e1248f9d091f7174678e2
b6e4279https://github.com/python/cpython/pull/123244/commits/b6e4279486dd7b8c291e1248f9d091f7174678e2
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 23, 2024 https://github.com/python/cpython/pull/123244#pullrequestreview-2256441821
View reviewed changes https://github.com/python/cpython/pull/123244/files/b6e4279486dd7b8c291e1248f9d091f7174678e2
Modules/_decimal/_decimal.chttps://github.com/python/cpython/pull/123244/files/b6e4279486dd7b8c291e1248f9d091f7174678e2#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.com/neonene
use Py_DECREF() rather than Py_CLEAR()https://github.com/python/cpython/pull/123244/commits/f8d1a2d2487cc861d714080b52db89c96704d136
f8d1a2dhttps://github.com/python/cpython/pull/123244/commits/f8d1a2d2487cc861d714080b52db89c96704d136
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 23, 2024 https://github.com/python/cpython/pull/123244#pullrequestreview-2256659492
View reviewed changes https://github.com/python/cpython/pull/123244/files/f8d1a2d2487cc861d714080b52db89c96704d136
Modules/_decimal/_decimal.chttps://github.com/python/cpython/pull/123244/files/f8d1a2d2487cc861d714080b52db89c96704d136#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.com/neonene
ensure GC is tracked on returnhttps://github.com/python/cpython/pull/123244/commits/33af89b8f0dbb137657cfb887407f62771141efd
33af89bhttps://github.com/python/cpython/pull/123244/commits/33af89b8f0dbb137657cfb887407f62771141efd
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
🔨 test-with-refleak-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-refleak-buildbots%22
Aug 23, 2024https://github.com/python/cpython/pull/123244#event-13996248933
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 23, 2024https://github.com/python/cpython/pull/123244#issuecomment-2307549320
@kumaraditya303https://github.com/kumaraditya303
33af89bhttps://github.com/python/cpython/commit/33af89b8f0dbb137657cfb887407f62771141efd
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-refleak-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-refleak-buildbots%22
Aug 23, 2024https://github.com/python/cpython/pull/123244#event-13996249393
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Aug 24, 2024 https://github.com/python/cpython/pull/123244#pullrequestreview-2258329790
View reviewed changes https://github.com/python/cpython/pull/123244/files/33af89b8f0dbb137657cfb887407f62771141efd
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 24, 2024https://github.com/python/cpython/pull/123244#event-13999416222
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
5ff638fhttps://github.com/python/cpython/commit/5ff638f1b53587b9f912a18fc776a2a141fd7bed
Aug 24, 2024https://github.com/python/cpython/pull/123244#event-13999505164
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 24, 2024https://github.com/python/cpython/pull/123244#event-13999505266
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Aug 24, 2024https://github.com/python/cpython/pull/123244#event-13999506210
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Aug 24, 2024https://github.com/python/cpython/pull/123244#issuecomment-2308043646
@neonenehttps://github.com/neonene
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/123244
miss-islingtonhttps://github.com/miss-islington
Aug 24, 2024 https://github.com/python/cpython/pull/123244#ref-commit-ddc48bf
https://github.com/neonene
https://github.com/miss-islington
pythongh-123243https://github.com/python/cpython/issues/123243
: Fix reference leak inhttps://github.com/miss-islington/cpython/commit/ddc48bf6c501bc5ee8eac84c974c8a24e4c660ab
_decimalhttps://github.com/miss-islington/cpython/commit/ddc48bf6c501bc5ee8eac84c974c8a24e4c660ab
(https://github.com/miss-islington/cpython/commit/ddc48bf6c501bc5ee8eac84c974c8a24e4c660ab
pythonGH-123244https://github.com/python/cpython/pull/123244
)https://github.com/miss-islington/cpython/commit/ddc48bf6c501bc5ee8eac84c974c8a24e4c660ab
ddc48bfhttps://github.com/miss-islington/cpython/commit/ddc48bf6c501bc5ee8eac84c974c8a24e4c660ab
5ff638fhttps://github.com/miss-islington/cpython/commit/5ff638f1b53587b9f912a18fc776a2a141fd7bed
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 24, 2024https://github.com/python/cpython/pull/123244#issuecomment-2308043736
GH-123280https://github.com/python/cpython/pull/123280
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Aug 24, 2024https://github.com/python/cpython/pull/123244#event-13999507185
kumaraditya303https://github.com/kumaraditya303
Aug 24, 2024 https://github.com/python/cpython/pull/123244#ref-commit-a65fe07
https://github.com/miss-islington
https://github.com/neonene
[3.13]https://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
gh-123243https://github.com/python/cpython/issues/123243
: Fix reference leak inhttps://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
_decimalhttps://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
(https://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
GH-123244https://github.com/python/cpython/pull/123244
) (https://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
#123280https://github.com/python/cpython/pull/123280
)https://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
a65fe07https://github.com/python/cpython/commit/a65fe07db4aa57b4e67f2f9e914db7ea281f127f
gh-123243https://github.com/python/cpython/issues/123243
GH-123244https://github.com/python/cpython/pull/123244
5ff638fhttps://github.com/python/cpython/commit/5ff638f1b53587b9f912a18fc776a2a141fd7bed
https://github.com/neonene
neonenehttps://github.com/neonene
August 24, 2024 08:25https://github.com/python/cpython/pull/123244#event-14000218902
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Sep 4, 2024 https://github.com/python/cpython/pull/123244#ref-issue-2504127840
decimal.getcontext crashes with --with-decimal-contextvar=no and -X showrefcount #123657 https://github.com/python/cpython/issues/123657
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Sep 4, 2024https://github.com/python/cpython/pull/123244#issuecomment-2327766808
#123657https://github.com/python/cpython/issues/123657
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123244
https://github.com/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/python/cpython/pull/123244/files/f8d1a2d2487cc861d714080b52db89c96704d136
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/123244/files/33af89b8f0dbb137657cfb887407f62771141efd
Please reload this pagehttps://github.com/python/cpython/pull/123244
Please reload this pagehttps://github.com/python/cpython/pull/123244
https://github.com/neonene
https://github.com/bedevere-bot
https://github.com/ZeroIntensity
https://github.com/erlend-aasland
https://github.com/kumaraditya303
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.