how can I get the name of a method inside it?

2007-06-03 Thread \S�bastien Vincent\ sebastien_nimp73
I would like to know if it's possible to retrieve the name of a method when you're inside it. For example, in the following script, I would like to assign _s so that it prints you are in method1. *** class Obj1: def __init__(self): ... def

Re: how can I get the name of a method inside it?

2007-06-03 Thread montyphyton
I would like to know if it's possible to retrieve the name of a method when you're inside it. For example, in the following script, I would like to assign _s so that it prints you are in method1. *** class Obj1: def __init__(self): ...

Re: how can I get the name of a method inside it?

2007-06-03 Thread Alex Martelli
Sébastien Vincent sebastien_nimp73@ wrote: I would like to know if it's possible to retrieve the name of a method when you're inside it. For example, in the following script, I would like to assign _s so that it prints you are in method1. *** class