Author petr.viktorin
Recipients benjamin.peterson, cstratak, gregory.p.smith, mark.dickinson, meador.inge, petr.viktorin, vstinner
Date 2020-03-03.16:29:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583252997.63.0.662920482963.issue39689@roundup.psfhosted.org>
In-reply-to
Content
IMO:

- The "native" format should use native _Bool, and we should only test unpacking 0 and 1
- The "standard" format should use portable char semantics: continue to treat any non-zero value as true
- The docs should grow a warning that for the native format of '?', representation of true/false depends on the platform/compiler.

But what is "format"? The docs talk about size, alignment and byte order; bool representation is a slightly different concept. I'm not sure if it should follow Byte order or Size/Alignment: I think that the latter would be better (so only "@" uses the native _Bool semantics, but "=" uses portable char semantics), but it might be be harder to implement.
History
Date User Action Args
2020-03-03 16:29:57petr.viktorinsetrecipients: + petr.viktorin, gregory.p.smith, mark.dickinson, vstinner, benjamin.peterson, meador.inge, cstratak
2020-03-03 16:29:57petr.viktorinsetmessageid: <1583252997.63.0.662920482963.issue39689@roundup.psfhosted.org>
2020-03-03 16:29:57petr.viktorinlinkissue39689 messages
2020-03-03 16:29:57petr.viktorincreate