Re: Python variables obscur ipdb commands
Kossak <[email protected]> Wed, 26 Oct 2016 13:04:44 +0200
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <CAJaG6zF_PoUyVhhDg6cZgfmKBGSojvM34mq2cEEie=PBmZ16RA@mail.gmail.com> |
I created issue here: https://github.com/ipython/ipython/issues/10037 I also think it would be best if ipdb commands were working reliably all the time. (in all other cases, when python variable is not ipdb command at the same time, we should be able to display it without '!') On Wed, Oct 26, 2016 at 12:21 AM, Fangohr H. <[email protected]> wrote: > I have run into exactly the same problem. It is a difficult call what is > better but it is upsetting when 'n' is not moving onto the next statement > but prints a value. > > I'd support deactivating this convenience feature. Or maybe it should not > work for variable names that shadow debugger commands? Maybe that is an > inoffensive compromise? > > Best wishes > > Hans > > Sent from smartphone > > On 25 Oct 2016, at 21:20, Thomas Kluyver <[email protected]<mailto:takow > [email protected]>> wrote: > > On 25 October 2016 at 18:25, Kossak <[email protected]<mailto: > [email protected]>> wrote: > Is this a bug that python variables obscur ipdb commands? I can't use "n" > nor "next" (they return variable value) when there are variables with the > same name in the code being debugged. Details are here: > http://stackoverflow.com/questions/40224066/ipdb- > commands-obscured-by-variables > > It's a feature that was added recently, though I can imagine it may be > annoying. Here's the PR that added it: > https://github.com/ipython/ipython/pull/9449 > > Feel free to open an issue asking that it be removed again. I don't have > any strong feelings one way or the other, as I don't use the debugger much. > > Thomas > _______________________________________________ > IPython-dev mailing list > [email protected]<mailto:[email protected]> > https://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > [email protected] > https://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ IPython-dev mailing list [email protected] https://mail.scipy.org/mailman/listinfo/ipython-dev