Why does str(aList) use repr() on the list's elements?

Levente Sandor sandorlevi at yahoo.com
Sun Aug 18 16:00:38 EDT 2002


tweedgeezer at hotmail.com (Jeremy Fincher) wrote in message news:<698f09f8.0208172226.10d18ce7 at posting.google.com>...
> The subject pretty much says it all -- one would think that the str()
> of a list would use str() on its elements, but it uses repr() instead.
>  Why is this?
> 
> Thanks,
> Jeremy

I don't know the answer, but this really looks like an inconsistency...
levi



More information about the Python-list mailing list