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
'0o0'

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

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28916>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to