In article <[EMAIL PROTECTED]>, Scott David Daniels wrote:
> Doug Kearns wrote:
>> Is this the best/simplest way to generate a module list?
>>
>> python -c 'from pydoc import help; help("modules")'
>>
>> Thanks,
>> Doug
> I am not sure if this is what you want, but how about:
I'm updating the zsh completion function for python and need to
generate a list of modules for completing the new '-m' option.
> For python 2.4, try:
> python -c "import sys; print sorted(sys.modules)"
I don't know python, but as I understand it, this only lists _loaded_
modules.
Thanks,
Doug
--
http://mail.python.org/mailman/listinfo/python-list