"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
|>  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.

As in
>>> print(type(3))
int                                         # instead of <class 'int'>

? Looks good to me.

| (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.)
\ 



_______________________________________________
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