[IPython-dev] Python variables obscur ipdb commands

Kossak sburczymuch+ipython at gmail.com
Wed Oct 26 07:04:44 EDT 2016

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. <H.FANGOHR at soton.ac.uk> 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 <takowl at gmail.com<mailto:takow
> l at gmail.com>> wrote:
> On 25 October 2016 at 18:25, Kossak <sburczymuch+ipython at gmail.com<mailto:
> sburczymuch+ipython at gmail.com>> 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
> IPython-dev at scipy.org<mailto:IPython-dev at scipy.org>
> https://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20161026/2dbb855c/attachment.html>

More information about the IPython-dev mailing list