[docs] hex() documentation: mention "%x" % int (issue 26506)

julien+python at palard.fr julien+python at palard.fr
Mon Dec 5 15:22:48 EST 2016


I'm not fan of "If prefix "0b" is desired or not", I'm not a native
english but I think it should be changed.


http://bugs.python.org/review/26506/diff/16805/Doc/library/functions.rst
File Doc/library/functions.rst (right):

http://bugs.python.org/review/26506/diff/16805/Doc/library/functions.rst#newcode92
Doc/library/functions.rst:92: If prefix "0b" is desired or not, you can
use either of the following ways. See
I'm not a big fan of "is desired or not", why not avoiding it with
something like:

"When more flexibility is needed, :func:`format` can also format
hexadecimal strings:"

(If so, please change it on the three different places for consistency).

http://bugs.python.org/review/26506/


More information about the docs mailing list