New submission from Bob Stein:
`%b%42` produces a ValueError exception instead of outputting '101010'
Details here: http://stackoverflow.com/a/29997703/673991
--
messages: 242388
nosy: BobStein
priority: normal
severity: normal
status: open
title: %b does not work, as a binary output
Bob Stein added the comment:
Ah, you're right, my mistake.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24112
___
___
Python-bugs-list mailing
Steven D'Aprano added the comment:
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