[issue26506] hex() documentation: mention "%x" % int
Serhiy Storchaka
report at bugs.python.org
Fri Mar 11 01:56:51 EST 2016
Serhiy Storchaka added the comment:
There is no harm if use hex(value)[2:]. It's a matter of taste.
We can mention "%x" % value for the case if the user just doesn't know about this alternative. The same is for value.ljust(5) and '%-5s' % value.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26506>
_______________________________________
More information about the Python-bugs-list
mailing list