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 <1630337203.54.0.025027053226.issue45025@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
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: <1630337203.54.0.025027053226.issue45025@roundup.psfhosted.org>
2021-08-30 15:26:43vstinnerlinkissue45025 messages
2021-08-30 15:26:43vstinnercreate