]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Update struct.__doc__: _Bool available unconditionally (GH-143716) (#144071)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 20 Jan 2026 12:32:45 +0000 (13:32 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 12:32:45 +0000 (12:32 +0000)
Update struct.__doc__: _Bool available unconditionally (GH-143716)

This amends commit a9296e7f3be4d6c22271b25c86467ff867c63bbb.
(cherry picked from commit 31c81ab0a2fb7009a76426617991a9b539ab0180)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Modules/_struct.c

index 7505afcd7c6b0d6927f99a5b97d1e645b41298a7..016a1d3cf21231e1e8925fcc2f4ceef1cd0b00ab 100644 (file)
@@ -2482,8 +2482,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\