From eee0dde43a93203a6b96c134198a5118879e5c0a Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 12 Jan 2026 07:32:01 +0300 Subject: [PATCH] Fix struct.__doc__ (_Bool available unconditionally) This amends a9296e7f3be --- Modules/_struct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/_struct.c b/Modules/_struct.c index a8e9021f0a303a..ea9efcbcc538e5 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2694,8 +2694,7 @@ The optional first format char indicates byte order, size and alignment:\n\ The remaining chars indicate types of args and must match exactly;\n\ these can be preceded by a decimal repeat count:\n\ x: pad byte (no data); c:char; b:signed byte; B:unsigned byte;\n\ - ?: _Bool (requires C99; if not available, char is used instead)\n\ - h:short; H:unsigned short; i:int; I:unsigned int;\n\ + ?:_Bool; h:short; H:unsigned short; i:int; I:unsigned int;\n\ l:long; L:unsigned long; f:float; d:double; e:half-float.\n\ Special cases (preceding decimal count indicates length):\n\ s:string (array of char); p: pascal string (with count byte).\n\