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 skrah
Recipients ammar2, benjamin.peterson, cstratak, gregory.p.smith, mark.dickinson, meador.inge, miss-islington, petr.viktorin, ronaldoussoren, skrah, vstinner
Date 2020-03-18.10:23:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584527008.61.0.286766995829.issue39689@roundup.psfhosted.org>
In-reply-to
Content
I think this issue should be about fixing the tests so that people
looking at the sanitizer buildbots can move on.

GH-18969 fixes "<?", ">?" and "!?", which clearly used wrong
semantics with the new compiler behavior. This should be an
uncontroversial fix that also takes care of test_struct.


Can we please discuss native _Bool in another issue?

There is no non-hackish way of unpacking _Bool if new compilers
essentially treat values outside [0, 1] as a trap representation.


You could determine sizeof(_Bool), use the matching unsigned type,
unpack as that, then cast to _Bool. But do you really want to force
that procedure on all array libraries that want to be PEP-3118
compatible?

I'd rather deprecate _Bool and use uint8_t, but that definitely
deserves a separate issue.
History
Date User Action Args
2020-03-18 10:23:28skrahsetrecipients: + skrah, gregory.p.smith, ronaldoussoren, mark.dickinson, vstinner, benjamin.peterson, petr.viktorin, meador.inge, cstratak, ammar2, miss-islington
2020-03-18 10:23:28skrahsetmessageid: <1584527008.61.0.286766995829.issue39689@roundup.psfhosted.org>
2020-03-18 10:23:28skrahlinkissue39689 messages
2020-03-18 10:23:28skrahcreate