Éric Araujo <mer...@netwok.org> added the comment:

A note in the docs (without note/warning directives, just a note) and maybe the 
docstring would be good.  It should better explain that str has two uses: 
converting anything to a str (using __str__ or __repr__), decode buffer to str 
(with encoding and errors arguments).  str(b'') is a case of the first use, not 
the second (and likewise %s formatting).

----------
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13538>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to