"alf" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
> is there a more elegant way to get o.__class__.__name__. For instance I 
> would imagine name(o).
>
> -- 
> alf

>>> name = lambda o : o.__class__.__name__
>>> name(1)
'int'

Go for it!

-- Paul 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to