----- Unsent message follows -----
Received: from charon.cwi.nl by inesc.inesc.pt with SMTP;
id AA19963 (5.65c/SunOS4.1.3); Thu, 4 Nov 1993 13:26:49 +0100
Received: from voorn.cwi.nl by charon.cwi.nl with SMTP
id AA02665 (5.65b/%I%/CWI-Amsterdam); Thu, 4 Nov 1993 11:22:05 +0100
Received: by voorn.cwi.nl with SMTP
id AA06485 (5.65b/3.8/CWI-Amsterdam); Thu, 4 Nov 1993 11:22:05 +0100
Message-Id: <9311041022.AA06485=guido@voorn.cwi.nl>
To: "Steven D. Majewski" <sdm7g@elvis.med.virginia.edu>
Cc: python-list@cwi.nl
Subject: Re: str() and repr() of sequence like classes, esp. 'array' [RFC]
In-Reply-To: Your message of "Wed, 03 Nov 1993 12:28:35 MET."
<199311031728.AA19031@elvis.med.Virginia.EDU>
From: Guido.van.Rossum@cwi.nl
X-Organization: CWI (Centrum voor Wiskunde en Informatica)
X-Address: P.O. Box 4079, 1009 AB Amsterdam, The Netherlands
X-Phone: +31 20 5924127 (work), +31 20 6225521 (home), +31 20 5924199 (fax)
Date: Thu, 04 Nov 1993 11:22:05 +0100
Sender: Guido.van.Rossum@cwi.nl
Steven proposes that all objects have two methods: one for repr() (and
``) which returns something unambiguous, and one for str() which
returns a pleasant string to be used by the print statement. I like
the idea. It would seem to be simple to implement as well. Thanks!
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>