[Python-ideas] Changing str(someclass) to return only the class name
Barry Warsaw
barry at python.org
Sat Oct 29 01:46:22 CEST 2011
On Oct 28, 2011, at 03:00 PM, Ka-Ping Yee wrote:
> >>> print x
> foo
>
>...doesn't actually feel that friendly to me. I want to know
>that it's *probably* a function or *probably* a class
>>> print x
None
What is x? :)
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111028/21bbb650/attachment.pgp>
More information about the Python-ideas
mailing list