[Python-3000] Removing repr

Michael P. Soulier msoulier at digitaltorque.ca
Thu Apr 6 15:13:33 CEST 2006


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 <msoulier at digitaltorque.ca>
"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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20060406/14b302d5/attachment.pgp 


More information about the Python-3000 mailing list