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

Eric V. Smith report at bugs.python.org
Mon Oct 31 08:47:06 EDT 2016


Eric V. Smith added the comment:

TypeError is documented as "Raised when an operation or function is applied to an object of inappropriate type". I think that fits this case: you're applying some format code to a type that doesn't support it.

----------

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


More information about the Python-bugs-list mailing list