This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients georg.brandl, indygreg, methane, petr.viktorin, serhiy.storchaka, vstinner
Date 2021-08-30.15:26:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> In order to avoid undefined behavior, Python's C API should avoid all use of bit fields.

See also the PEP 620. IMO more generally, the C API should not expose structures, but provide ways to access it through getter and setter functions.

See bpo-40120 "Undefined C behavior going beyond end of struct via a [1] arrays" which is a similar issue.
Date User Action Args
2021-08-30 15:26:43vstinnersetrecipients: + vstinner, georg.brandl, petr.viktorin, methane, serhiy.storchaka, indygreg
2021-08-30 15:26:43vstinnersetmessageid: <>
2021-08-30 15:26:43vstinnerlinkissue45025 messages
2021-08-30 15:26:43vstinnercreate