Finding source from class or instance?

Stuart Stanley stuarts at 171.69.180.197
Wed Jan 17 19:21:56 EST 2001


Folks,

Is there a (easy!) way to get the source code from a class or instance
of a class?  A preference would lie in just getting the source of the
base class itself, but I would settle for getting the file name where
the base class lives in.  I figure the information is sitting in the
modules somewhere, but I don't know how to navigate there to get it....

Thanks!  --stuart


-- 
 "Computer Science is no more about computers than | Stuart Stanley
 astronomy is about telescopes." - E. W. Dijkstra  | stuarts at cisco.com
                                                   | Cisco Systems, inc
                                                   | St Paul, MN
                                                   | 612.578.6412



More information about the Python-list mailing list