On 06/04/06 Michael Chermside said:

> repr() and str() are both concerned with turning an object into a
> string that vaguely describes it. (Turning it into a string that

I thought that the distinction was as follows. 

str() should return a human-readable representation of something. 

repr() should return a machine-readable representation of something, suitable
for an exec command. 

That still has value, no?

Mike

-- 
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Attachment: pgpCOJD4Mb4fo.pgp
Description: PGP signature

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to