[Pkg-zsh-devel] Bug#691638: zsh: completion for python -m should be implemented without import all modules

Sebastian Ramacher sramacher at debian.org
Wed Jan 30 16:15:14 UTC 2013


On 2012-10-28 17:55:04, Sebastian Ramacher wrote:
> Here is a preliminary patch that uses code based on bpython's
> importcompletion to enumerate all modules. It also adds caching for the
> list of modules and handles submodules better. The caching policy should be
> improved, but I couldn't think of a clever way to determine whether it
> should be updated or not.

Attached is an updated patch. It improves the module detection a bit,
i.e modules which aren't run-able with python -m are not listed anymore.

Regards
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 691638.2.patch
Type: text/x-diff
Size: 5784 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20130130/0235c66b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20130130/0235c66b/attachment.pgp>


More information about the Pkg-zsh-devel mailing list