str() for containers

Peter Hansen peter at engcorp.com
Sat Jun 19 09:28:00 EDT 2004


Marcin 'Qrczak' Kowalczyk wrote:

> On Sat, 19 Jun 2004 08:41:56 -0400, John Roth wrote:
> 
> 
>>The only clean solution I can see is to provide a third built-in
>>that provides the "right" output when a container class needs
>>to turn an object into a string.
> 
> 
> What is the right thing e.g. for strings?

Exactly.  ;-)



More information about the Python-list mailing list