https://github.com/python/cpython/commit/f2fcc494677d392c6f7cbbee2f708be9d810cf18
commit: f2fcc494677d392c6f7cbbee2f708be9d810cf18
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-25T07:23:44+01:00
summary:

gh-145633: Remove remnants of the "unknown_format" (floats) in the struct 
module (#146189)

files:
M Modules/_struct.c

diff --git a/Modules/_struct.c b/Modules/_struct.c
index 1f1b44b2d44165..d6995895c2b9e3 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1536,10 +1536,6 @@ init_endian_tables(void *Py_UNUSED(arg))
                     size matches */
                 if (ptr->size != native->size)
                     break;
-                /* Skip float and double, could be
-                    "unknown" float format */
-                if (ptr->format == 'd' || ptr->format == 'f')
-                    break;
                 /* Skip _Bool, semantics are different for standard size */
                 if (ptr->format == '?')
                     break;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to