Raymond Hettinger added the comment:

+1 for the OP's original idea (something like a dir_modules() function that 
lists out all possible imports).

I think something like this must already be present in some of the Python 
front-ends such as ipython and bpython.  That is how they support 
tab-completion for imports:

In [1]: import co
code         codeop       colorsys     compileall   contextlib   copy
codecs       collections  commands     compiler     cookielib    copy_reg

In [1]: import re
re        readline  repr      requests  resource  reverend  rexec

----------
nosy: +brett.cannon, rhettinger
priority: normal -> low
resolution: rejected -> 
status: closed -> open
versions: +Python 3.5 -Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to