[IPython-user] complete_object demo, OO file system browsing
Ville M. Vainio
Fri Dec 28 10:24:00 CST 2007
As a fun hack / demo of complete_object generic function, fresh in svn
I added a pythonic way to browse file system:
Here's what it looks like. My Windows start menu is under PathObj name
"startmenu" (see test_pathobj on how it was created):
[q:/ipython]|23> startmenu.Accessories. <TAB>
cd: d:/Documents and Settings/All Users/Start
This open the file desktop.ini in an editor (associated application,
launched via os.startfile).
__str__ is also implemented:
d:/Documents and Settings/All Users/Start
An interesting/related custom completer might be something that
navigated xml DOM trees...
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-user