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 ronaldoussoren
Recipients mark.dickinson, ned.deily, ronaldoussoren, wayedt
Date 2014-08-04.11:55:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407153302.89.0.387334151527.issue22012@psf.upfronthosting.co.za>
In-reply-to
Content
BTW. There is also an argument to be made against my patch and for a documentation update: it is unclear to me if clang ever creates _Bool false values where the bit pattern isn't exactly the same as the zero value of an integer of the same size (for example due to generated code only updating the least significant bit and starting with a uninitialised value that has some of the other bits set).  If it does so depends on what's more efficient to do in machine code, and my knowledge of assembly is too rusty to have anything useful to say about that (although I'd suspect that overwriting the complete _Bool value would be more efficient than loading the current value, updating the LSB and storing it again).

If it can do so the current behavior of struct.unpack would be more correct than the version you get after applying my patch.
History
Date User Action Args
2014-08-04 11:55:02ronaldoussorensetrecipients: + ronaldoussoren, mark.dickinson, ned.deily, wayedt
2014-08-04 11:55:02ronaldoussorensetmessageid: <1407153302.89.0.387334151527.issue22012@psf.upfronthosting.co.za>
2014-08-04 11:55:02ronaldoussorenlinkissue22012 messages
2014-08-04 11:55:02ronaldoussorencreate