More elegant to get a name: o.__class__.__name__

alf ask at me
Sat Dec 9 00:16:52 EST 2006


alf wrote:
> Hi,
> is there a more elegant way to get o.__class__.__name__. For instance I 
> would imagine name(o).
> 
decided to stick to o.__class__.__name__ for readibility.

-- 
alfz1



More information about the Python-list mailing list