Bug#841726: ipython3: importing something from ipython has side effects

2016-10-22 Thread Dominik George
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 inst

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-22 Thread Chris Lamb
Hi, > ipython3: importing something from ipython has side effects Many, many Python packages have import-time side-effects that are far more suble than this. Whilst this a regrettable state of affairs, fixing them all is just not possible anymore. A script that imports all packages installed on

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-22 Thread Dominik George
Hi, > Many, many Python packages have import-time side-effects that are > far more suble than this. Whilst this a regrettable state of affairs, > fixing them all is just not possible anymore. Well, this bug report is about this specific bug, not all bugs of this kind. > > A script that imports

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-22 Thread Dominik George
> Not at all. This is the only way to get a list of all available Python > packages, and it is even what core Python's help("modules") does. And no, I do not like that either ☹. But it's a matter of sad fact. -- PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17 FD26 B79A 3C16 A0C4 F296 Dominik Georg

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-23 Thread Chris Lamb
Dominik George wrote: > 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

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-23 Thread Dominik George
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

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-23 Thread Dominik George
> There's no need to check this specific instance, it's just one example of a > potential side-effects that mean importing everything is, alas, by design > broken. Don't forget all the other import-time monkey-patching, etc. too. Totally agreed. -nik -- PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-23 Thread Chris Lamb
Dominik George wrote: > I wouldn't open an RC bug against python-apt because it calls init_config(), Sure; I explained poorly — packages that *use* apt_pkg would call init_config() which presumably has side-effects (?), not python-apt itself… There's no need to check this specific instance, it's

Bug#841726: ipython3: importing something from ipython has side effects

2016-10-25 Thread Andrey Rahmatullin
Control: severity -1 wishlist Please explain to the upstream how do you want the module to behave. -- WBR, wRAR signature.asc Description: PGP signature

Processed: Re: Bug#841726: ipython3: importing something from ipython has side effects

2016-10-25 Thread Debian Bug Tracking System
Processing control commands: > severity -1 wishlist Bug #841726 [python3-ipdb] ipython3: importing something from ipython has side effects Severity set to 'wishlist' from 'critical' -- 841726: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841726 Debian Bug Tracking System Contact ow...@bugs.