Here is a patch for the svn version of ipython that adds a full completion for the imports.<br><br>With it you can get completion for commands like<br>'import xml.d'<br>'from xml.dom import '<br>or anything else like this.
<br><br>To provide the completion for a module of the kind 'name' I look into all the folders in the sys.path.<br>To provide the completion for a module of the kind 'name1.name2', I import name1. It may have some side effects ... but anyway you're going to import it aren't you ?
<br><br>The patch modify the extensions. So to try it out you need to add an import to your ipy_user_conf.py :<br>from IPython.Extensions import ipy_stock_completers<br><br>If you like it I may do a patch to integrate it directly in ipython, not just in the extensions.
<br><br>Hope you like it.<br>Olivier Lauzanne<br><br>