Re: Python variables obscur ipdb commands

"Fangohr H." <[email protected]> Tue, 25 Oct 2016 22:21:44 +0000
Newsgroups gmane.comp.python.ipython.devel
Message-ID <[email protected]>
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:[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