Debian has in the past contained Python packages which have side-effects
when imported which are worse than just crashing the calling process
(for example, I've had pydoc crash my window manager).

Arguably all such cases are bugs in those packages, but it seems likely
that such bugs will appear again. And of course the user might have
local Python packages which do dangerous things when imported.

So I think pydoc is just wrong to believe it can safely call
pkgutil.walk_packages() with no explicit path.

(This behaviour can be particularly entertaining when combined with
zsh's tab-completion for 'python -m', which currently calls pydoc in a
similar way [#691638].)

-M-


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130126102927.ga...@golux.woodcraft.me.uk

Reply via email to