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 steven.daprano
Recipients BobStein, steven.daprano
Date 2015-05-02.10:57:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430564242.52.0.192670747044.issue24112@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug, since %b is not supported in Python 2, only in Python 3:

https://docs.python.org/2/library/stdtypes.html#string-formatting-operations

No new features will be added to 2.7, so if you need %b you can use Python 3, or in Python 2.7 you can use the newer string format method instead:

py> "{:b}".format(42)
'101010'
History
Date User Action Args
2015-05-02 10:57:22steven.dapranosetrecipients: + steven.daprano, BobStein
2015-05-02 10:57:22steven.dapranosetmessageid: <1430564242.52.0.192670747044.issue24112@psf.upfronthosting.co.za>
2015-05-02 10:57:22steven.dapranolinkissue24112 messages
2015-05-02 10:57:22steven.dapranocreate