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

Dominik George nik at naturalnet.de
Sat Oct 22 18:40:52 UTC 2016


Package: ipython3
Version: 2.4.1-1
Severity: critical
Justification: breaks unrelated software

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Importing ipython in any other Python script has side effects.  This is
sometimes done, e.g.  in situations where a script wants to list all
packages installed on a system, like so:

  import pkgutil
  for i in pkgutil.walk_packages(onerror=lambda x: None):
    pass

Python imports all packages discovered by that once, and simply importing
something must not have any side effects.

However, Python drops into an IPython shell afterwards and also behaves
oddly in other ways.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: systemd (via /run/systemd/system)

Versions of packages ipython3 depends on:
ii  python3-decorator      4.0.6-1
ii  python3-pkg-resources  28.0.0-1
ii  python3-simplegeneric  0.8.1-1
pn  python3:any            <none>

ipython3 recommends no packages.

Versions of packages ipython3 suggests:
pn  ipython3-notebook   <none>
pn  ipython3-qtconsole  <none>
pn  python3-zmq         <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQJhBAEBCABLBQJYC7K0MRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n
cGctcG9saWN5LnR4dC5hc2MSHG5pa0BuYXR1cmFsbmV0LmRlAAoJELeaPBagxPKW
GtYP/iI33ljNoBwJiBFclSShKCH08rlf8Sdthrd9ylC0hrkKXEbndRt1serItEeF
oTaf8wxN+GkxgCJk3Zr0Omks64HAM+QBNoTghXgwyLVYZNvSj5dGxkA84zvJQr/3
th4SJur8bGseUayOI1FMDV8dN2sxjV3ZcKrIbsl8oXeEnVyykT9fAbfpmAhlKDVv
TU0R1DocD9eCU60BGDxN/Fykr5n8EyQOkU1ct6SFB2v+HsLzFFEKMcOXFAK1wvRZ
GoPjh1LJwfLv50Lyjpurr17wzpVA2yF6I8hWtBBZ6/g8UllvnB6BEw4+EVRBiSE2
pek37QSU8scYQqgeNodqZx4AZqnQvMsYx78YHT7maVElMfkydfNT84iKBCTPda+f
gExl8nVcHF1ycfPogRIapdsvaIKdkui9B8zmz2PG16ddHovTzUA1y5IAswgLOdBU
yKksASUV8U3hsvPr+WI0VqBHitraufpzosuTNJLuVspbd8QTdCtfPqOVRvznMDUJ
xgJ45QmxYpn1KA1G6ltBRyUtmZiQSIqzLlB3u4s+sHpU1ffHjNZ2/mvdWYTsqj21
ExdQrefckQCg9usD68bWpZ3vfckTZYd6kYmxG9qRircgWRH6dxbbB4cyHh0RU/g5
OBPzk9wdbBH48ncO7xIMHGi/dm8H3WPw0+axug5EWWnTg3rM
=20Ku
-----END PGP SIGNATURE-----



More information about the Python-modules-team mailing list