René's URL Explorer Experiment


Title: Remove "unknown_format" code path in PyFloat_Pack/Unpack*() · Issue #145633 · python/cpython · GitHub

Open Graph Title: Remove "unknown_format" code path in PyFloat_Pack/Unpack*() · Issue #145633 · python/cpython

X Title: Remove "unknown_format" code path in PyFloat_Pack/Unpack*() · Issue #145633 · python/cpython

Description: This is a follow-up of the #91073. Proposal was briefly discussed in the referenced issue. Now support for IEEE floating-point formats is a requirement and the configure script will fail, if it can't detect it. The only exception is some...

Open Graph Description: This is a follow-up of the #91073. Proposal was briefly discussed in the referenced issue. Now support for IEEE floating-point formats is a requirement and the configure script will fail, if it can...

X Description: This is a follow-up of the #91073. Proposal was briefly discussed in the referenced issue. Now support for IEEE floating-point formats is a requirement and the configure script will fail, if it can...

Opengraph URL: https://github.com/python/cpython/issues/145633

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove \"unknown_format\" code path in PyFloat_Pack/Unpack*()","articleBody":"This is a follow-up of the #91073.  Proposal was briefly [discussed](https://github.com/python/cpython/issues/91073#issuecomment-1093946053) in the referenced issue.\n\nNow support for IEEE floating-point formats is a [requirement](https://docs.python.org/3/using/configure.html#build-requirements) and the configure script will fail, if it can't detect it.  The only exception is some ARM platforms (this come from b08a53a99def):\nhttps://github.com/python/cpython/blob/149c4657507d17f78dd0938419a5a24ed71dc07e/configure.ac#L6172-L6180\n\nThis is only case, when \"unknown_format\" code patch now could be triggered (BTW, we could detect this format in runtime and switch to yet another \"just copy bytes\" path).  Should we keep this for an unsupported platform?  IIRIC, such chips aren't supported even in Debian.\n\nWith \"unknown_format\" we also could drop code to detect endianness in runtime.  I'm not sure about `float.__getformat__` function.  It's docstring says:\n```pycon\n\u003e\u003e\u003e help(float.__getformat__)\nHelp on built-in function __getformat__:\n\n__getformat__(typestr, /) class method of builtins.float\n    You probably don't want to use this function.\n\n      typestr\n        Must be 'double' or 'float'.\n\n    It exists mainly to be used in Python's test suite.\n\n    This function returns whichever of 'unknown', 'IEEE, big-endian' or 'IEEE,\n    little-endian' best describes the format of floating-point numbers used by the\n    C type named by typestr.\n\n```\nProbably, it could be treated as private and we should remove it in favor of using configure macros in tests.  (`__set_format__()` method was removed without prior deprecation in 5ab745fc51e).  Edit: we could also leave this also as-is for alternative Python implementations, using CPython tests.\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-145634\n* gh-145845\n* gh-146162\n* gh-146189\n* gh-146400\n* gh-146422\n* gh-146460\n* gh-146461\n* gh-153440\n* gh-153490\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2026-03-08T03:11:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":26},"url":"https://github.com/145633/cpython/issues/145633"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:62374059-8205-f019-3b84-f3be25926997
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2B8:183DA9:1A52806:2405C52:6A5249E3
html-safe-nonce31bba65300268ad1ee290c090c214d8d62ee3bb61a0e1e05a0f195ac21eb25b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkI4OjE4M0RBOToxQTUyODA2OjI0MDVDNTI6NkE1MjQ5RTMiLCJ2aXNpdG9yX2lkIjoiNTU4NDUwMTMwNTM3MDYyNjUzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac71534c0d216bd8df1a4b9c5d2e993041227a835533efad2824ea401200f23965
hovercard-subject-tagissue:4040295594
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/145633/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2a74a266a8302c0d73c1100654b100dd07fe1f0959441d40b0b11e0ef976d143/python/cpython/issues/145633
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2a74a266a8302c0d73c1100654b100dd07fe1f0959441d40b0b11e0ef976d143/python/cpython/issues/145633
og:image:altThis is a follow-up of the #91073. Proposal was briefly discussed in the referenced issue. Now support for IEEE floating-point formats is a requirement and the configure script will fail, if it can...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskirpichev
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/145633#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F145633
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%2Fissues%2F145633
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/145633
Reloadhttps://github.com/python/cpython/issues/145633
Reloadhttps://github.com/python/cpython/issues/145633
Please reload this pagehttps://github.com/python/cpython/issues/145633
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/145633
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
Remove "unknown_format" code path in PyFloat_Pack/Unpack*()https://github.com/python/cpython/issues/145633#top
3.15pre-release feature fixes, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
on Mar 8, 2026https://github.com/python/cpython/issues/145633#issue-4040295594
#91073https://github.com/python/cpython/issues/91073
discussedhttps://github.com/python/cpython/issues/91073#issuecomment-1093946053
requirementhttps://docs.python.org/3/using/configure.html#build-requirements
b08a53ahttps://github.com/python/cpython/commit/b08a53a99def3fa949643974f713b5b189e21bc7
cpython/configure.achttps://github.com/python/cpython/blob/149c4657507d17f78dd0938419a5a24ed71dc07e/configure.ac#L6172-L6180
149c465https://github.com/python/cpython/commit/149c4657507d17f78dd0938419a5a24ed71dc07e
5ab745fhttps://github.com/python/cpython/commit/5ab745fc51e159ead28b523414e52f0bcc1ef353
gh-145633: remove support for ancient ARM platforms with mixed-endian doubles #145634https://github.com/python/cpython/pull/145634
gh-145633: Refine notes on non-IEEE platforms #145845https://github.com/python/cpython/pull/145845
gh-145633: drop runtime checks for floatting-point formats in the array module #146162https://github.com/python/cpython/pull/146162
gh-145633: remove remnants of the "unknown_format" (floats) in the struct module #146189https://github.com/python/cpython/pull/146189
gh-85989: deprecate float.__getformat__() class method #146400https://github.com/python/cpython/pull/146400
gh-145633: Fix struct.pack('f') on s390x #146422https://github.com/python/cpython/pull/146422
[3.14] gh-145633: Fix struct.pack('f') on s390x (GH-146422) #146460https://github.com/python/cpython/pull/146460
[3.13] gh-145633: Fix struct.pack('f') on s390x (#146422) #146461https://github.com/python/cpython/pull/146461
gh-145633: Allow PyFloat_Pack8 & PyFloat_UnPack* to fail in future CPython versions #153440https://github.com/python/cpython/pull/153440
[3.15] gh-145633: Allow PyFloat_Pack8 & PyFloat_UnPack* to fail in future CPython versions (GH-153440) #153490https://github.com/python/cpython/pull/153490
3.15pre-release feature fixes, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
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.