str() of a tuple

Fredrik Lundh fredrik at pythonware.com
Thu Sep 5 13:27:16 EDT 2002


Douglas Zongker wrote:

> Why, oh why does the str() of a container use the repr()s of the
> objects inside?  This seems to violate what the docs claim str() does
> -- "return a nicely printable representation of an object."

"an object" refers to the container itself, not the objects
in the container.

</F>





More information about the Python-list mailing list