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 petr.viktorin
Recipients ammar2, benjamin.peterson, cstratak, gregory.p.smith, mark.dickinson, meador.inge, petr.viktorin, vstinner
Date 2020-03-11.16:29:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583944144.48.0.859375520849.issue39689@roundup.psfhosted.org>
In-reply-to
Content
Oh! I just reead the docs more carefully; they say:

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 be True when unpacking.
History
Date User Action Args
2020-03-11 16:29:04petr.viktorinsetrecipients: + petr.viktorin, gregory.p.smith, mark.dickinson, vstinner, benjamin.peterson, meador.inge, cstratak, ammar2
2020-03-11 16:29:04petr.viktorinsetmessageid: <1583944144.48.0.859375520849.issue39689@roundup.psfhosted.org>
2020-03-11 16:29:04petr.viktorinlinkissue39689 messages
2020-03-11 16:29:04petr.viktorincreate