Re: question about introspection using inspect module
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: question about introspection using inspect module

From: Mike Meyer <mwm@mired.org>
Date: Fri Jul 08 2005 - 06:33:13 CEST

Benjamin Rutt <rutt@bmi.osu.edu> writes:
> 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).

The problem with that is that Python is dynamic, so the list of
completions may change over time. Not very likely, I know, but still...

Have you considered writing this tool in Python, with Pymacs <URL:
http://pymacs.progiciels-bpi.ca/ >? That way, you could get the list
at runtime with a dir(module).

   <mike

-- 
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Received on Thu Sep 29 16:49:41 2005