Re: [Tutor] print method name

2011-12-08 Thread Alan Gauld
On 08/12/11 14:49, rail shafigulin wrote: i created a class and in some instances when i use it call some of its methods i need to print a method name. I'm curious why you need this? In most cases if you call a method you know its name... myObj = MyClass() myObj.spam() print "Just called MyCla

Re: [Tutor] print method name

2011-12-08 Thread rail shafigulin
On Thu, Dec 8, 2011 at 10:40 AM, Lie Ryan wrote: > On 12/09/2011 01:49 AM, rail shafigulin wrote: > >> i created a class and in some instances when i use it call some of its >> methods i need to print a method name. the online search did produce >> some results but none of them seem to work for m

Re: [Tutor] print method name

2011-12-08 Thread rail shafigulin
On Thu, Dec 8, 2011 at 10:17 AM, Joel Goldstick wrote: > > > On Thu, Dec 8, 2011 at 9:49 AM, rail shafigulin > wrote: > >> i created a class and in some instances when i use it call some of its >> methods i need to print a method name. the online search did produce some >> results but none of the

Re: [Tutor] print method name

2011-12-08 Thread Lie Ryan
On 12/09/2011 01:49 AM, rail shafigulin wrote: i created a class and in some instances when i use it call some of its methods i need to print a method name. the online search did produce some results but none of them seem to work for me. for example one of them said just to use __name__ or func_n

Re: [Tutor] print method name

2011-12-08 Thread Joel Goldstick
On Thu, Dec 8, 2011 at 9:49 AM, rail shafigulin wrote: > i created a class and in some instances when i use it call some of its > methods i need to print a method name. the online search did produce some > results but none of them seem to work for me. for example one of them said > just to use __n

Re: [Tutor] print method name

2011-12-08 Thread James Reynolds
On Thu, Dec 8, 2011 at 9:49 AM, rail shafigulin wrote: > i created a class and in some instances when i use it call some of its > methods i need to print a method name. the online search did produce some > results but none of them seem to work for me. for example one of them said > just to use __n

[Tutor] print method name

2011-12-08 Thread rail shafigulin
i created a class and in some instances when i use it call some of its methods i need to print a method name. the online search did produce some results but none of them seem to work for me. for example one of them said just to use __name__ or func_name but it didn't work for me. i'm using python 3