René's URL Explorer Experiment


Title: gh-150534: Add C23 half-turn trigonometric `*pi` functions by jepler · Pull Request #150555 · python/cpython · GitHub

Open Graph Title: gh-150534: Add C23 half-turn trigonometric `*pi` functions by jepler · Pull Request #150555 · python/cpython

X Title: gh-150534: Add C23 half-turn trigonometric `*pi` functions by jepler · Pull Request #150555 · python/cpython

Description: See #150534 and https://discuss.python.org/t/add-half-turns-functions-cospi-et-al-to-math-module-following-c23-ieee754-2019/107550/5 for discussion and context. The following functions are added to the math module: acospi asinpi atanpi atan2pi cospi sinpi tanpi The following aspects of a new feature are covered in this pull request: Add tests Add documentation including NEWS.d & whatsnew Add configure-time checks for function presence Regenerate configure The math_testcases.txt cases are based on glibc's test cases, and their input & output values have been used. I supplemented this with tests of inf/nan arguments. I extended math_testcases.txt so that it can test n-arg functions, and used it to test atan2pi. Issue: gh-150534 Closes: #150534

Open Graph Description: See #150534 and https://discuss.python.org/t/add-half-turns-functions-cospi-et-al-to-math-module-following-c23-ieee754-2019/107550/5 for discussion and context. The following functions are added to...

X Description: See #150534 and https://discuss.python.org/t/add-half-turns-functions-cospi-et-al-to-math-module-following-c23-ieee754-2019/107550/5 for discussion and context. The following functions are added to...

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

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:82da49a9-e104-9749-55dc-6b1ff087634e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC682:A99C2:42D2851:54C7E24:6B021313
html-safe-nonced95c02692ad34c2b45f01e555e34e7a015abbd089bbcb879719907abe0eb0dae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjgyOkE5OUMyOjQyRDI4NTE6NTRDN0UyNDo2QjAyMTMxMyIsInZpc2l0b3JfaWQiOiI2MzI3MjY5MjAwMDQ1OTM3NDI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac03e7cea364532a20f9574f554acbac1890d21c661643a10c9fcb00cc6396b742
hovercard-subject-tagpull_request:3762533351
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/150555/files
twitter:imagehttps://avatars.githubusercontent.com/u/1517291?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1517291?s=400&v=4
og:image:altSee #150534 and https://discuss.python.org/t/add-half-turns-functions-cospi-et-al-to-math-module-following-c23-ieee754-2019/107550/5 for discussion and context. The following functions are added to...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/150555/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150555%2Ffiles
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%2F150555%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/150555/files
Reloadhttps://github.com/python/cpython/pull/150555/files
Reloadhttps://github.com/python/cpython/pull/150555/files
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
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
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
jepler:c23-math-pifunshttps://github.com/jepler/cpython/tree/c23-math-pifuns
Conversation 42 https://github.com/python/cpython/pull/150555
Commits 25 https://github.com/python/cpython/pull/150555/commits
Checks 54 https://github.com/python/cpython/pull/150555/checks
Files changed https://github.com/python/cpython/pull/150555/files
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
gh-150534: Add C23 half-turn trigonometric *pi functions https://github.com/python/cpython/pull/150555/files#top
Show all changes 25 commits https://github.com/python/cpython/pull/150555/files
ad12476 Add *pi functions to math module jepler May 27, 2026 https://github.com/python/cpython/pull/150555/commits/ad12476f973b8e4410b715a78ab21d028d82284b
03808d6 Add news item and remove testing code jepler May 27, 2026 https://github.com/python/cpython/pull/150555/commits/03808d6ed91cabf6b4e30fe329744ee2155d0685
e9ec2b6 tests: Add math_testcases for the new *pi functions jepler May 28, 2026 https://github.com/python/cpython/pull/150555/commits/e9ec2b634a361779a2d61b17538379392ae2af93
bb57325 fix discussion of atan2pi jepler May 28, 2026 https://github.com/python/cpython/pull/150555/commits/bb57325b217a47532c93548b1e1aac50909c0cb4
7650fa5 fix wrongly changed m_sinpi jepler May 28, 2026 https://github.com/python/cpython/pull/150555/commits/7650fa5471185511c5dca08037099fd3c0ee103b
86de1c0 regenerate autoconf files with `make regen-configure` jepler May 28, 2026 https://github.com/python/cpython/pull/150555/commits/86de1c01b63230ac0178ef138cb612de99a446d2
be980bf remove accidentally-committed code jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/be980bf7ca26b07b379c437e594b2c49e2ac6797
d3254cd mathdata: Add +-inf, nan tests for new functions jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/d3254cd0fe79e4cd039e56631061f65737393eef
6d8dd17 test_math: Let "mtestfile" test 2-arg functions jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/6d8dd17bfb41f2dbd407155f0392552cf41ea06f
0c7fdfb math_testcases: Add testcases for atan2pi jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/0c7fdfb7c1217c50bf1bdcd3e204044e0895f468
aa93326 These are now tested in math_testcases.txt jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/aa933261130f836c6b4c3e2e84ead778406ec27c
e0ede77 Add whatsnew entry for math module changes jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/e0ede772e1d78c81c4946f6bb2ab4601a0dd20af
694f479 Correct doc typos (atanpi2 -> atan2pi) jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/694f4797cfa1fbc3cb98fb9901fa6067d9db95a4
ab68cdc Correct comment about which standard this conforms to jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/ab68cdc76ccef98999a9892b0e6a6cb3d35a13c7
359ac19 Add 'versionadded' notes to new functions jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/359ac19f58b8a426bac5e26cde4ea9d6344a1840
6cec4b8 Use float constants, not expressions, for simple values. jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/6cec4b85663c2bbc79e50e24ecd711acec58ba64
d66a2c3 as x is finite, regular comparisons can be used here jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/d66a2c36ed71daba716e1781d6cedd93af0d70e3
dcc5040 Merge remote-tracking branch 'origin/main' into c23-math-pifuns jepler May 29, 2026 https://github.com/python/cpython/pull/150555/commits/dcc5040e6753e2faf7ca8906be008fc1a201c167
1f98ce6 remove comment about glibc jepler May 30, 2026 https://github.com/python/cpython/pull/150555/commits/1f98ce685a81929ff8e33c7c2f56ab3b6563ab3f
12fcd24 Update comments based on review. jepler May 30, 2026 https://github.com/python/cpython/pull/150555/commits/12fcd24a935b379903eea390505b697dda5dd227
56da6fc math_methods: Re-sort and conform to surrounding spacing jepler May 30, 2026 https://github.com/python/cpython/pull/150555/commits/56da6fcf824fb15fcefcd2f9463c414c4f3cb6f3
0e1ba52 Apply suggestions from code review jepler May 31, 2026 https://github.com/python/cpython/pull/150555/commits/0e1ba523d73acf30cc69dddf1685f88b86a246cd
c763c61 Update Modules/mathmodule.c jepler May 31, 2026 https://github.com/python/cpython/pull/150555/commits/c763c61b4e33c9fc2df7c3d15b3ae123b6f261dd
e243ce3 apply lint fix jepler May 31, 2026 https://github.com/python/cpython/pull/150555/commits/e243ce3fa5aeaa5d5b2e11aa1371bde4ac9d0c40
4364ecb Merge branch 'main' into c23-math-pifuns serhiy-storchaka Jun 6, 2026 https://github.com/python/cpython/pull/150555/commits/4364ecb551e7beabee702b1f9c59a1316bc00cc5
Clear filters https://github.com/python/cpython/pull/150555/files
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
math.rst https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
3.16.rst https://github.com/python/cpython/pull/150555/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
math_testcases.txt https://github.com/python/cpython/pull/150555/files#diff-944c900284c68b688cb7b3cfe9a43f9cb4c8a97d9c772ee6b815441d5dac89e1
test_math.py https://github.com/python/cpython/pull/150555/files#diff-a39b1e44e20048f5b8207fee83df00a2541a7f02716113e6243c33165e628cd5
2026-05-27-15-51-29.gh-issue-150534.3Nan6S.rst https://github.com/python/cpython/pull/150555/files#diff-f37f8a9500d2a91bf4676200b9b2725868fa511037ef4be58fcd1cc9c19aef52
mathmodule.c https://github.com/python/cpython/pull/150555/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
configure https://github.com/python/cpython/pull/150555/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
configure.ac https://github.com/python/cpython/pull/150555/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
pyconfig.h.in https://github.com/python/cpython/pull/150555/files#diff-f67052280dd3a53f0e713339632a8c10bc2e420e24a70852d83aeb50d495835f
Doc/library/math.rsthttps://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
View file https://github.com/jepler/cpython/blob/4364ecb551e7beabee702b1f9c59a1316bc00cc5/Doc/library/math.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
https://github.com/python/cpython/pull/150555/files#diff-cda4d855eb1739006a497bdead4e353aef302d1837ee7271ec5e4ba45f675221
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.16.rsthttps://github.com/python/cpython/pull/150555/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
View file https://github.com/jepler/cpython/blob/4364ecb551e7beabee702b1f9c59a1316bc00cc5/Doc/whatsnew/3.16.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/150555/{{ revealButtonHref }}
https://github.com/python/cpython/pull/150555/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
https://github.com/python/cpython/pull/150555/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
Please reload this pagehttps://github.com/python/cpython/pull/150555/files
Please reload this pagehttps://github.com/python/cpython/pull/150555/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.