
Nov. 26, 2018
7:37 p.m.
Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: Is not it exactly what the docsting says?
If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object).
---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35318> _______________________________________