[issue28377] struct.unpack of Bool

2016-10-07 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> struct.unpack('?', '\x02') returns (False,) on Mac OSX ___ Python tracker _

[issue28377] struct.unpack of Bool

2016-10-07 Thread Meador Inge
Meador Inge added the comment: Looks like a dup to me. -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28377] struct.unpack of Bool

2016-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe this is a duplicate of issue22012. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue28377] struct.unpack of Bool

2016-10-06 Thread Weihong Guan
New submission from Weihong Guan: According to the doc: For the '?' format character, the return value is either True or False. When packing, the truth value of the argument object is used. Either 0 or 1 in the native or standard bool representation will be packed, and any non-zero value will