How to get class's name on runtime?

Andrew McNamara andrewm at object-craft.com.au
Thu May 9 04:21:11 EDT 2002


>How can I get class-instances name at runtime?
>
>I have tried to use __name__ method, but that does not exist...

Is this what you want: "self.__class__.__name__"?

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/





More information about the Python-list mailing list