[issue32268] quopri.decode(): string argument expected, got 'bytes'

R. David Murray report at bugs.python.org
Tue Dec 19 18:50:51 EST 2017


R. David Murray <rdmurray at bitdance.com> added the comment:

That's type checking.  Not type checking is to call the method that writes the data, expecting the object to handle the bytes it is passed, and then that object raises an error to indicate that it cannot.  There is no protocol that can be checked for.

----------

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


More information about the Python-bugs-list mailing list