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
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
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
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
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
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
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