From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 19 Aug 2024 07:31:12 +0000 (+0200) Subject: [3.12] gh-123110: correct note about _Bool in the struct module docs (GH-123111)... X-Git-Tag: v3.12.6~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8edfa0b0b4ae4235bb3262d952c23e7581516d4f;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-123110: correct note about _Bool in the struct module docs (GH-123111) (#123127) gh-123110: correct note about _Bool in the struct module docs (GH-123111) (cherry picked from commit b0f462d4c808d6fb1d381bba4932acd8309c1f3b) Co-authored-by: Sergey B Kirpichev --- diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 346784d86e38..29bce521ee1a 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -275,9 +275,9 @@ Notes: (1) .. index:: single: ? (question mark); in struct format strings - The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type defined by - C99. If this type is not available, it is simulated using a :c:expr:`char`. In - standard mode, it is always represented by one byte. + The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type + defined by C standards since C99. In standard mode, it is + represented by one byte. (2) When attempting to pack a non-integer using any of the integer conversion