Message364511
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. |
|
Date |
User |
Action |
Args |
2020-03-18 10:23:28 | skrah | set | recipients:
+ skrah, gregory.p.smith, ronaldoussoren, mark.dickinson, vstinner, benjamin.peterson, petr.viktorin, meador.inge, cstratak, ammar2, miss-islington |
2020-03-18 10:23:28 | skrah | set | messageid: <1584527008.61.0.286766995829.issue39689@roundup.psfhosted.org> |
2020-03-18 10:23:28 | skrah | link | issue39689 messages |
2020-03-18 10:23:28 | skrah | create | |
|