function get_class_name()

username username at ilt.fhg.de
Thu Mar 13 17:13:54 EST 2003


Hi,

I need something (<<code>>) for a class i.e.

class Hello:
	.
	.
	def get_class_name(self):
		<<code>>

that does this

>>>World=Hello()
>>>World.get_class_name()
   "World"

Thanks 

Marco	
-- 

------------------------------------------------------------
# Dipl. Phys. Marco Hoefer
# Fraunhofer Institut f. Lasertechnik 
# Steinbachstr. 15, D-52074 Aachen, Germany.
# Tel: + 49 (0) 241 8906 128, Fax: +49 (0) 241 8906 121
# EMail: hoefer at ilt.fraunhofer.de, WWW: http://www.ilt.fhg.de




More information about the Python-list mailing list