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
ping wrote:
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
...
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.
haven't looked at the code (yet), but +1 on concept. (if this goes into 1.6, I no longer have to keep reposting pointers to my "describe" module...) </F>
participants (3)
-
Fredrik Lundh
-
Ka-Ping Yee
-
Trent Mick