Documentation for "str()" could use some adjustment - Unicode issue

greg greg at cosc.canterbury.ac.nz
Mon Mar 19 21:01:32 EDT 2007


John Nagle wrote:
> and when we get to
> Unicode-only strings, "str" will never raise a conversion exception.

On *strings*, maybe, but objects can implement __str__ in
arbitrary ways, so you can't say anything in general about
what str() will do.

--
Greg



More information about the Python-list mailing list