[docs] [issue29000] Not matched behavior within printf style bytes formatting
Serhiy Storchaka
report at bugs.python.org
Sat Dec 17 10:18:22 EST 2016
Serhiy Storchaka added the comment:
This is not documentation issue, but a bug in formatting octals in bytes.
>>> '%#07x' % 123
'0x0007b'
>>> b'%#07x' % 123
b'0x0007b'
>>> '%#07o' % 123
'0o00173'
>>> b'%#07o' % 123
b'000o173'
^
----------
components: +Interpreter Core -Documentation
nosy: +ethan.furman, serhiy.storchaka
stage: -> needs patch
type: -> behavior
versions: +Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29000>
_______________________________________
More information about the docs
mailing list