[docs] [issue13538] Docstring of str() and/or behavior

R. David Murray report at bugs.python.org
Tue Dec 6 15:30:26 CET 2011


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

A diff would be great.

We try to use warnings sparingly, and I don't think this is a case that warrants it.  Possibly a .. note is worthwhile, perhaps with an example for the bytes case, but even that may be too much.

I also wouldn't use the wording "is totally different from what you would expect", since by now I do expect it :).  How about something like "the result will not be the decoded version of the bytes, but instead will be the repr of the object", with a cross link to repr.

----------

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


More information about the docs mailing list