[issue28385] Bytes objects should reject all formatting codes with an error message

Serhiy Storchaka report at bugs.python.org
Sun Oct 30 15:13:25 EDT 2016


Serhiy Storchaka added the comment:

What is better?

1. Replace "unsupported format string passed to" back to "non-empty format string passed to " in generated error message? Note that full error message is changed in any case, this is the purpose of this issue.

2. Change the pattern "non-empty" to "unsupported" in f-string tests. Or to other part of new error message. It may be changed again in future.

----------

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


More information about the Python-bugs-list mailing list