Author gregory.p.smith
Recipients benjamin.peterson, cstratak, gregory.p.smith, mark.dickinson, meador.inge, petr.viktorin, vstinner
Date 2020-02-27.20:02:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582833744.62.0.868537406902.issue39689@roundup.psfhosted.org>
In-reply-to
Content
the concept of a native _Bool seems fuzzy.  the important thing for the struct module is to consume sizeof _Bool bytes from the input stream.  how those are interpreted is up to the platform.  So if the platform says a bool is 8 bytes and it only ever looks at the lowest bit in those for bool-ness, good for it.

in that situation our unittest assuming that b'\xf0' should be true when interpreted as a bool is wrong.

just get rid of that value from the loop in the test?
History
Date User Action Args
2020-02-27 20:02:24gregory.p.smithsetrecipients: + gregory.p.smith, mark.dickinson, vstinner, benjamin.peterson, petr.viktorin, meador.inge, cstratak
2020-02-27 20:02:24gregory.p.smithsetmessageid: <1582833744.62.0.868537406902.issue39689@roundup.psfhosted.org>
2020-02-27 20:02:24gregory.p.smithlinkissue39689 messages
2020-02-27 20:02:24gregory.p.smithcreate