[docs] [issue28916] Not matched behavior of modulo operator % with the description of the documentation

Martin Panter report at bugs.python.org
Fri Dec 9 02:31:26 EST 2016

Martin Panter added the comment:

Looks like a leftover relic from Python 2. In Python 3, the prefix is “0o”, not just “0”. This matches to change in Python 2 to 3 octal literal syntax. And there is no special handling of zero in 3:

>>> "%#o" % 0

nosy: +martin.panter
stage:  -> needs patch
versions: +Python 3.6, Python 3.7

Python tracker <report at bugs.python.org>

More information about the docs mailing list