From c7ad3c537ae2738c4caa0d6a7f0ddbec9a306290 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Fri, 20 Mar 2026 03:33:16 +0300 Subject: [PATCH] gh-145633: remove remnants of the "unknown_format" (floats) in the struct module --- Modules/_struct.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/_struct.c b/Modules/_struct.c index 2059218029ea34..2b6b00a49dd6a2 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;