[Python-modules-team] Bug#841726: ipython3: importing something from ipython has side effects

Dominik George nik at naturalnet.de
Sun Oct 23 08:39:43 UTC 2016


Hi,

> > Besides speech-dispatcher, against which I also reported a bug, I do not
> > have any packages on my system that show such behaviour.
> 
> Oh, really?  But surely some of them adjust sys.path (probably the most
> common?) as well as importing shared libraries and running stuff like
> ``apt_pkg.init_config()``.
> 
> The side-effects might be more subtle but they are still, alas, side-
> effects.

Yep.  That's not good either, but it doesn't make unrelated software, let
alone the core interpreter, misbehave (i.e. take control from it).

I wouldn't open an RC bug against python-apt because it calls init_config(),
but I did against speech-dispatcher because it configures argparse and
consumes sys.args and I did against ipython bacause it takes control over
parts of the core interpreter.

-nik

-- 
PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17  FD26 B79A 3C16 A0C4 F296

Dominik George · Hundeshagenstr. 26 · 53225 Bonn
Mobile: +49-1520-1981389 · https://www.dominik-george.de/

Teckids e.V. · FrOSCon e.V.
Fellowship of the FSFE · Piratenpartei Deutschland
Opencaching Deutschland e.V. · Debian Contributor

LPIC-3 Linux Enterprise Professional (Security)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20161023/22b634d7/attachment.sig>


More information about the Python-modules-team mailing list