Fernando Perez <[EMAIL PROTECTED]> writes:

> I certainly don't want to discourage you from learning about python
> introspection, it's one of the most fun aspects of the language.  But just as
> an FYI, the pydoc system already does much of what you have in mind, at least
> if I'm reading your description correctly:
>
> planck[/tmp]> pydoc -p 12345
> pydoc server ready at http://localhost:12345/

thanks, I'm aware of that actually, and seeing all the information
available there was inspiring to me.

what I am actually trying to do is to build a database of Python
modules.  so then later, I can write a tool in my favorite editor
(Emacs) to invoke some forms of completion against this database
(e.g. os.remov<TAB> or socket.<TAB> to see a list of all socket module
definitions).

I was browsing pydoc.py but at first glance was having trouble
separating what in the code what is for the GUI, what is for the Web
server, and what does the introspection.  I have actually borrowed the
ModuleScanner class already, to build the list of modules.  It is just
inspecting those modules further where I'm having trouble.

thanks,
-- 
Benjamin Rutt
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to