[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

R. David Murray report at bugs.python.org
Mon Dec 30 22:51:51 CET 2013


R. David Murray added the comment:

We don't usually *break* existing working code even if the output is wrong.  If you want to make '%x' % 3.14, etc, raise an error, I think you we should go through a deprecation period first.  The deprecation messages should, of course, be added now.

In other words, I would probably have voted against commit even if we weren't in beta yet.  It's a bit borderline, since the output is *wrong*, but given that we *are* in beta I think we'd better go the deprecation route.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19995>
_______________________________________


More information about the Python-bugs-list mailing list