René's URL Explorer Experiment


Title: gh-76007: Deprecate `__version__` attribute in `decimal` by StanFromIreland · Pull Request #140302 · python/cpython · GitHub

Open Graph Title: gh-76007: Deprecate `__version__` attribute in `decimal` by StanFromIreland · Pull Request #140302 · python/cpython

X Title: gh-76007: Deprecate `__version__` attribute in `decimal` by StanFromIreland · Pull Request #140302 · python/cpython

Description: Per discussion in the issue, provide a SPEC_VERSION constant instead. CC @merwok @smontanaro Issue: gh-76007 📚 Documentation preview 📚: https://cpython-previews--140302.org.readthedocs.build/

Open Graph Description: Per discussion in the issue, provide a SPEC_VERSION constant instead. CC @merwok @smontanaro Issue: gh-76007 📚 Documentation preview 📚: https://cpython-previews--140302.org.readthedocs.build/

X Description: Per discussion in the issue, provide a SPEC_VERSION constant instead. CC @merwok @smontanaro Issue: gh-76007 📚 Documentation preview 📚: https://cpython-previews--140302.org.readthedocs.build/

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d49f859b-43a8-a125-96c5-a06a3b3d84d3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAADE:F5E51:A7D30AC:AB37D64:6A50AF00
html-safe-noncecaa859e619396edb7fd613d6016a1e9841186d01a2c04f40e48346a8462aab61
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQURFOkY1RTUxOkE3RDMwQUM6QUIzN0Q2NDo2QTUwQUYwMCIsInZpc2l0b3JfaWQiOiIyOTAyNTkyMTY2NjA0ODc3NTY4IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0=
visitor-hmacf14e86386dff4142c86050f40a2bb6f536a5f5e2c1f37804ee86f4b7dfdec06c
hovercard-subject-tagpull_request:2926829329
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/140302/files
twitter:imagehttps://avatars.githubusercontent.com/u/89152624?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/89152624?s=400&v=4
og:image:altPer discussion in the issue, provide a SPEC_VERSION constant instead. CC @merwok @smontanaro Issue: gh-76007 📚 Documentation preview 📚: https://cpython-previews--140302.org.readthedocs.build/
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/140302/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140302%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F140302%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/140302/files
Reloadhttps://github.com/python/cpython/pull/140302/files
Reloadhttps://github.com/python/cpython/pull/140302/files
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality 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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
StanFromIreland:decimal-versionhttps://github.com/StanFromIreland/cpython/tree/decimal-version
Conversation 33 https://github.com/python/cpython/pull/140302
Commits 10 https://github.com/python/cpython/pull/140302/commits
Checks 43 https://github.com/python/cpython/pull/140302/checks
Files changed https://github.com/python/cpython/pull/140302/files
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
gh-76007: Deprecate __version__ attribute in decimal https://github.com/python/cpython/pull/140302/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/140302/files
8c30b2c Commit StanFromIreland Oct 18, 2025 https://github.com/python/cpython/pull/140302/commits/8c30b2cae8c4a3e6952cfcb881ae1a8d8f366366
d583f55 Commit StanFromIreland Oct 18, 2025 https://github.com/python/cpython/pull/140302/commits/d583f55e4c6ca4bff1b64f48d2266e5001a95daa
61a43b9 Commit StanFromIreland Oct 18, 2025 https://github.com/python/cpython/pull/140302/commits/61a43b90775f4968483f46164c9f3760f2d7cec4
0a2a9fb Correct version number StanFromIreland Oct 18, 2025 https://github.com/python/cpython/pull/140302/commits/0a2a9fbf486e899130328b940108bea36862dcbe
9b43d7f Apply suggestions from code review StanFromIreland Oct 19, 2025 https://github.com/python/cpython/pull/140302/commits/9b43d7fc71e0bbd5a6e96ba66f69021b6ce2d230
82ef916 Convert to macro StanFromIreland Oct 19, 2025 https://github.com/python/cpython/pull/140302/commits/82ef916249fcd13a392c51d85897dfcef7097243
16b7bc8 Add comment StanFromIreland Oct 19, 2025 https://github.com/python/cpython/pull/140302/commits/16b7bc869d5253ce8771b76859d59c2e49d19555
56a75e0 Relocate constant in doc StanFromIreland Oct 19, 2025 https://github.com/python/cpython/pull/140302/commits/56a75e0d807a47f4df29f16c0567693bff9454d6
dbebb28 Merge branch 'main' into decimal-version hugovk Oct 20, 2025 https://github.com/python/cpython/pull/140302/commits/dbebb2832e9e5e27f45ef8b6bffede14f016580d
ba3295b Apply suggestions from code review StanFromIreland Oct 20, 2025 https://github.com/python/cpython/pull/140302/commits/ba3295bbac65f0244513336274aedaaceedc742b
Clear filters https://github.com/python/cpython/pull/140302/files
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
pending-removal-in-3.20.rst https://github.com/python/cpython/pull/140302/files#diff-2888a96b9d5084ea7843198342cec3672d2b3154876f4ac0360cc525d5fae694
decimal.rst https://github.com/python/cpython/pull/140302/files#diff-d8a17dd951457652b5c434d4da321636c7e6dfc9e42b77c58dd384a38824110a
3.15.rst https://github.com/python/cpython/pull/140302/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
_pydecimal.py https://github.com/python/cpython/pull/140302/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50
decimal.py https://github.com/python/cpython/pull/140302/files#diff-e6870d2a8163d1b63b33fd9a81eba8e34d44291e29f63024229433a097a0e383
test_decimal.py https://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
2025-10-18-15-20-25.gh-issue-76007.SNUzRq.rst https://github.com/python/cpython/pull/140302/files#diff-d40c00db5246586a439046904b97c6523be7f93261c51883dac1e26c4f8c63e6
_decimal.c https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
Doc/deprecations/pending-removal-in-3.20.rsthttps://github.com/python/cpython/pull/140302/files#diff-2888a96b9d5084ea7843198342cec3672d2b3154876f4ac0360cc525d5fae694
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Doc/deprecations/pending-removal-in-3.20.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-2888a96b9d5084ea7843198342cec3672d2b3154876f4ac0360cc525d5fae694
https://github.com/python/cpython/pull/140302/files#diff-2888a96b9d5084ea7843198342cec3672d2b3154876f4ac0360cc525d5fae694
Doc/library/decimal.rsthttps://github.com/python/cpython/pull/140302/files#diff-d8a17dd951457652b5c434d4da321636c7e6dfc9e42b77c58dd384a38824110a
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Doc/library/decimal.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-d8a17dd951457652b5c434d4da321636c7e6dfc9e42b77c58dd384a38824110a
https://github.com/python/cpython/pull/140302/files#diff-d8a17dd951457652b5c434d4da321636c7e6dfc9e42b77c58dd384a38824110a
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/140302/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Doc/whatsnew/3.15.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/pull/140302/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
Lib/_pydecimal.pyhttps://github.com/python/cpython/pull/140302/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Lib/_pydecimal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50
https://github.com/python/cpython/pull/140302/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50
https://github.com/python/cpython/pull/140302/files#diff-fad420a37a1acebb2eb47f65bf3bd7e6aedc561cc51141bd3663c0e397d41c50
Lib/decimal.pyhttps://github.com/python/cpython/pull/140302/files#diff-e6870d2a8163d1b63b33fd9a81eba8e34d44291e29f63024229433a097a0e383
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Lib/decimal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-e6870d2a8163d1b63b33fd9a81eba8e34d44291e29f63024229433a097a0e383
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
https://github.com/python/cpython/pull/140302/files#diff-e6870d2a8163d1b63b33fd9a81eba8e34d44291e29f63024229433a097a0e383
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Lib/test/test_decimal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
https://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
https://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
https://github.com/python/cpython/pull/140302/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
Misc/NEWS.d/next/Library/2025-10-18-15-20-25.gh-issue-76007.SNUzRq.rsthttps://github.com/python/cpython/pull/140302/files#diff-d40c00db5246586a439046904b97c6523be7f93261c51883dac1e26c4f8c63e6
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Misc/NEWS.d/next/Library/2025-10-18-15-20-25.gh-issue-76007.SNUzRq.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
Modules/_decimal/_decimal.chttps://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
View file https://github.com/StanFromIreland/cpython/blob/ba3295bbac65f0244513336274aedaaceedc742b/Modules/_decimal/_decimal.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/140302/{{ revealButtonHref }}
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
Please reload this pagehttps://github.com/python/cpython/pull/140302/files
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
https://github.com/python/cpython/pull/140302/files#diff-071237c57ffb81dd4303eb5f02e5c5a661891a31c746c8f55a97a39659ad95d6
Please reload this pagehttps://github.com/python/cpython/pull/140302/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.