Christian Heimes wrote:
Philip Guo wrote:
Does anyone know how to get this information either from a code object or
from a related object? I am hacking the interpreter, so I have full access
to everything.
Does this help?
class A(object):
... def method(self):
... pass
...
A.m
Philip Guo wrote:
Hi all,
This is my first post, so sorry for the n00bish question. Let's say I
have 2 classes with the same __init__ method defined in a file foo.py:
class A:
def __init__(self):
pass
class B:
def __init__(self):
pass
For the purpose of a code analysis, I need
Philip Guo wrote:
> Does anyone know how to get this information either from a code object or
> from a related object? I am hacking the interpreter, so I have full access
> to everything.
Does this help?
>>> class A(object):
... def method(self):
... pass
...
>>> A.method.im_class
>
Hi all,
This is my first post, so sorry for the n00bish question. Let's say I have
2 classes with the same __init__ method defined in a file foo.py:
class A:
def __init__(self):
pass
class B:
def __init__(self):
pass
For the purpose of a code analysis, I need to get a UNIQUE name f