[Tutor] getting the current method name

Adam Groszer adamg@mailbox.hu
Thu Apr 17 03:10:02 2003


Dear All,

how to do the following:

class x:
	def y():
		print "Hi, my name is",<<method-name --> 'y'>>

z=x()
z.y()
should print
"Hi, my name is y"

Of course, resolving "<<method-name --> 'y'>>" should not be done with
simply 'y' :-)

Adam