Finding source from class or instance?
Moshe Zadka
moshez at zadka.site.co.il
Fri Jan 19 08:57:59 EST 2001
On Thu, 18 Jan 2001 10:42:32 +0100, "Alex Martelli" <aleaxit at yahoo.com> wrote:
> There is a dis module, that does 'disassembly' of bytecode, but
> that's lower-level than the Python source you seek, and also
> seems to apply only to _methods_ defined in a class rather than
> to the code in the classbody itself (offhand, I don't know how
> to get to the codeobject for the latter -- anybody...?).
AFAIK, you can't. The code is executed, and then forgotten.
--
Moshe Zadka <sig at zadka.site.co.il>
This is a signature anti-virus.
Please stop the spread of signature viruses!
Fingerprint: 4BD1 7705 EEC0 260A 7F21 4817 C7FC A636 46D0 1BD6
More information about the Python-list
mailing list