]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update struct.__doc__: _Bool available unconditionally (#143716)
authorSergey B Kirpichev <skirpichev@gmail.com>
Tue, 20 Jan 2026 12:09:20 +0000 (15:09 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 12:09:20 +0000 (13:09 +0100)
This amends commit a9296e7f3be4d6c22271b25c86467ff867c63bbb.

Modules/_struct.c

index c3f8359ac39e4e91971d0d1a2f78a775412160fa..74ae9e4c33d31f7f7f6d4dee66d72b5bcd2d25a8 100644 (file)
@@ -2662,8 +2662,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\
   F:float complex; D:double complex.\n\
 Special cases (preceding decimal count indicates length):\n\