[Python-3000] Types and classes

Guido van Rossum guido at python.org
Mon Apr 7 19:27:41 CEST 2008


>  Could not find this in tracker, so http://bugs.python.org/issue2565

And thanks to Martin for making it so.

As a follow-up, what do people think of making the str() of a class
return just the thing between '...' in the repr()? This is much
shorter and in many cases enough.

(This actually inverses the rule that the repr() ought to resemble an
expression and the str() could be anything convenient, but I'd rather
see the repr() be unambiguous.)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list