[issue31780] Using format spec ',x' displays incorrect error message

Terry J. Reedy report at bugs.python.org
Fri Oct 13 19:08:21 EDT 2017


Terry J. Reedy <tjreedy at udel.edu> added the comment:

The formatting part of PEP 515 was implemented in #27080.  Chris Angelico's initial patch https://bugs.python.org/file44152/underscores_decimal_only.patch was, as the name says, for decimal only, and added "or '_' " to the error message.  The next patch added other bases but neglected to remove the obsoleted addition.

Chris, can you do a PR?  I don't think any new test is needed.  I would also be inclined to skip the news blurb, but since Eric should review and merge, it is his call.

----------
components: +Interpreter Core
nosy: +Rosuav, terry.reedy
stage:  -> needs patch
versions: +Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31780>
_______________________________________


More information about the Python-bugs-list mailing list