[Python-Dev] inspect.py

Ka-Ping Yee ping@lfw.org
Tue, 30 May 2000 02:48:50 -0700 (PDT)


I just posted the HTML document generator script i promised
to do at IPC8.  It's at http://www.lfw.org/python/ (see the
bottom of the page).

The reason i'm mentioning this here is that, in the course of
doing that, i put all the introspection work in a separate
module called "inspect.py".  It's at

    http://www.lfw.org/python/inspect.py

It tries to encapsulate the interface provided by func_*, co_*,
et al. with something a little richer.  It can handle anonymous
(tuple) arguments for you, for example.  It can also get the
source code of any function, method, or class for you, as long
as the original .py file is still available.  And more stuff
like that.

I think most of this stuff is quite generally useful, and it
seems good to wrap this up in a module.  I'd like your thoughts
on whether this is worth including in the standard library.



-- ?!ng

"To be human is to continually change.  Your desire to remain as you are
is what ultimately limits you."
    -- The Puppet Master, Ghost in the Shell