Finding source from class or instance?
Moshe Zadka
moshez at zadka.site.co.il
Fri Jan 19 08:57:59 EST 2001
More information about the Python-list mailing list
Fri Jan 19 08:57:59 EST 2001
- Previous message (by thread): Finding source from class or instance?
- Next message (by thread): Literate programming in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Finding source from class or instance?
- Next message (by thread): Literate programming in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list