From 4be09816931bb6da25e074e51f958c039a635539 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 17 Aug 2024 18:55:57 +0300 Subject: [PATCH 1/3] gh-123110: correct note about _Bool in the struct module docs --- Doc/library/struct.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index a2c293443e23d3..eba393dd3d44c7 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -279,9 +279,8 @@ 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. (2) When attempting to pack a non-integer using any of the integer conversion From 638fa92eb620a4820a95a108b154cab168c5bbf7 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sun, 18 Aug 2024 12:58:56 +0300 Subject: [PATCH 2/3] Update Doc/library/struct.rst --- Doc/library/struct.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index eba393dd3d44c7..edfe01c98f17a4 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -280,7 +280,8 @@ Notes: .. index:: single: ? (question mark); in struct format strings The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type - defined by C standards since C99. + defined by C standards since C99. In standard mode, it is always + represented by one byte. (2) When attempting to pack a non-integer using any of the integer conversion From 2b9ec0b18f8a089f9e3a7cfa2a25e2b3104005fd Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sun, 18 Aug 2024 13:10:15 +0300 Subject: [PATCH 3/3] Update Doc/library/struct.rst --- Doc/library/struct.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index edfe01c98f17a4..4769affdf1d666 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -280,7 +280,7 @@ Notes: .. index:: single: ? (question mark); in struct format strings The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type - defined by C standards since C99. In standard mode, it is always + defined by C standards since C99. In standard mode, it is represented by one byte. (2)