Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35318> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com