René's URL Explorer Experiment


Title: gh-161387: Check the type of the decimal context ContextVar by 0z5a · Pull Request #161399 · python/cpython · GitHub

Open Graph Title: gh-161387: Check the type of the decimal context ContextVar by 0z5a · Pull Request #161399 · python/cpython

X Title: gh-161387: Check the type of the decimal context ContextVar by 0z5a · Pull Request #161399 · python/cpython

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

Open Graph Description: Refs gh-161387. _decimal.current_context() returned whatever the internal decimal_context ContextVar held, without checking PyDecContext_Check. Callers immediately cast the value to PyDecContextObj...

X Description: Refs gh-161387. _decimal.current_context() returned whatever the internal decimal_context ContextVar held, without checking PyDecContext_Check. Callers immediately cast the value to PyDecContextObj...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:d76dda62-a126-1d17-a13a-d7aa48b64b0e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA556:ADA9D:41236BB:536FBFE:6B021A6A
html-safe-nonce1ce7d3ec3d2c2245bf48f7ef5d5310022cc89e5f3039837b8e08edd7157df2de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTU2OkFEQTlEOjQxMjM2QkI6NTM2RkJGRTo2QjAyMUE2QSIsInZpc2l0b3JfaWQiOiI4MDcwOTA0MTU1NjA0MTMwNDEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf4347deae2701b89ce37529a315026ff9e37c18f2f35485e4d28f75fcc5610d6
hovercard-subject-tagpull_request:5169449717
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/161399/commits
twitter:imagehttps://opengraph.githubassets.com/32a5cf621d1e833d9027fac73de21b9aebe1bc31d69355ed7251fd5d6ab295f9/python/cpython/pull/161399
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/32a5cf621d1e833d9027fac73de21b9aebe1bc31d69355ed7251fd5d6ab295f9/python/cpython/pull/161399
og:image:altRefs gh-161387. _decimal.current_context() returned whatever the internal decimal_context ContextVar held, without checking PyDecContext_Check. Callers immediately cast the value to PyDecContextObj...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username0z5a
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/161399/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161399%2Fcommits
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%2F161399%2Fcommits
Sign uphttps://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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/161399/commits
Reloadhttps://github.com/python/cpython/pull/161399/commits
Reloadhttps://github.com/python/cpython/pull/161399/commits
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
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
0z5a:fix-decimal-contextvar-typehttps://github.com/0z5a/cpython/tree/fix-decimal-contextvar-type
Conversationhttps://github.com/python/cpython/pull/161399
Commits8 (8)https://github.com/python/cpython/pull/161399/commits
Checkshttps://github.com/python/cpython/pull/161399/checks
Files changedhttps://github.com/python/cpython/pull/161399/files
gh-161387: Check the type of the decimal context ContextVarhttps://github.com/python/cpython/pull/161399/commits#top
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
0z5a:fix-decimal-contextvar-typehttps://github.com/0z5a/cpython/tree/fix-decimal-contextvar-type
gh-161387: Check the type of the decimal context ContextVarhttps://github.com/python/cpython/pull/161399/commits/cd34ce8a6ff1fd1c2bba038fb41f395bd8be9ca3
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
cd34ce8https://github.com/python/cpython/pull/161399/commits/cd34ce8a6ff1fd1c2bba038fb41f395bd8be9ca3
https://github.com/python/cpython/tree/cd34ce8a6ff1fd1c2bba038fb41f395bd8be9ca3
Fix test isolation for the duplicate decimal_context varhttps://github.com/python/cpython/pull/161399/commits/0254fa8b5667ade46832379c9a2eaced1ed829d0
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
0254fa8https://github.com/python/cpython/pull/161399/commits/0254fa8b5667ade46832379c9a2eaced1ed829d0
https://github.com/python/cpython/tree/0254fa8b5667ade46832379c9a2eaced1ed829d0
Address review: report the received type, tidy the testhttps://github.com/python/cpython/pull/161399/commits/c10e2e7b9e88df2ce4cbd6c5852d7f8739727e45
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
c10e2e7https://github.com/python/cpython/pull/161399/commits/c10e2e7b9e88df2ce4cbd6c5852d7f8739727e45
https://github.com/python/cpython/tree/c10e2e7b9e88df2ce4cbd6c5852d7f8739727e45
Skip the test when _decimal has no context variableshttps://github.com/python/cpython/pull/161399/commits/18682f0a016469c942598ecc41572cfbe012cf4b
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
18682f0https://github.com/python/cpython/pull/161399/commits/18682f0a016469c942598ecc41572cfbe012cf4b
https://github.com/python/cpython/tree/18682f0a016469c942598ecc41572cfbe012cf4b
Update Modules/_decimal/_decimal.chttps://github.com/python/cpython/pull/161399/commits/6c4cfcb91dbd53bfa86f9152f86cc580ef17efdb
0z5ahttps://github.com/python/cpython/commits?author=0z5a
sobolevnhttps://github.com/python/cpython/commits?author=sobolevn
6c4cfcbhttps://github.com/python/cpython/pull/161399/commits/6c4cfcb91dbd53bfa86f9152f86cc580ef17efdb
https://github.com/python/cpython/tree/6c4cfcb91dbd53bfa86f9152f86cc580ef17efdb
Update Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/161399/commits/360d1667639a68178add5311bd9b231d9a1a710a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
sobolevnhttps://github.com/python/cpython/commits?author=sobolevn
360d166https://github.com/python/cpython/pull/161399/commits/360d1667639a68178add5311bd9b231d9a1a710a
https://github.com/python/cpython/tree/360d1667639a68178add5311bd9b231d9a1a710a
Test that the wrong-typed context is not leakedhttps://github.com/python/cpython/pull/161399/commits/589b9f2ef7c8ab55fff7d58b8cf438bda2320ed1
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
589b9f2https://github.com/python/cpython/pull/161399/commits/589b9f2ef7c8ab55fff7d58b8cf438bda2320ed1
https://github.com/python/cpython/tree/589b9f2ef7c8ab55fff7d58b8cf438bda2320ed1
Assert the context var is unchanged and check the error messagehttps://github.com/python/cpython/pull/161399/commits/7bbee0df95dd9b48234bf2d0d2fe5d64b07eac8e
https://github.com/0z5a
0z5ahttps://github.com/python/cpython/commits?author=0z5a
7bbee0dhttps://github.com/python/cpython/pull/161399/commits/7bbee0df95dd9b48234bf2d0d2fe5d64b07eac8e
https://github.com/python/cpython/tree/7bbee0df95dd9b48234bf2d0d2fe5d64b07eac8e
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.