Skip to content

Multiple %%%% in tab-completion after pdb #8077

Description

@memeplex
[carlos@carlos ~]$ ipython
Python 3.4.3 (default, Feb 26 2015, 23:01:07) 
Type "copyright", "credits" or "license" for more information.

IPython 3.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %pdb
Automatic pdb calling has been turned ON

In [2]: 1/0
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-2-05c9758a9c21> in <module>()
----> 1 1/0

ZeroDivisionError: division by zero
> <ipython-input-2-05c9758a9c21>(1)<module>()
----> 1 1/0

ipdb> q

In [3]: %<Tab><Tab><Tab><Tab>...

Each succesive tab press adds a new %.

Activity

  1. self-assigned this
    on Mar 19, 2015
  2. added a commit that references this issue on Mar 19, 2015
    82d9724
  3. takluyver commented on Mar 19, 2015

    @takluyver
    Member

    #8090 should fix it.

  4. memeplex commented on Mar 19, 2015

    @memeplex
    ContributorAuthor

    Yep, now I remember having something like that my ipython initialization because of a similar thing that used to happen with rmagic (I think), a long time ago.

  5. takluyver commented on Mar 19, 2015

    @takluyver
    Member

    Yep, #2759.

  6. added this to the 4.0 milestone on Aug 11, 2015
  7. memeplex commented on Oct 10, 2015

    @memeplex
    ContributorAuthor

    Regression: this is happening again with:

    (ins)carlos@carlos ~$ ipython --version
    4.0.0
    (ins)carlos@carlos ~$ python --version
    Python 3.5.0
    

    Should I open a new issue?

  8. memeplex commented on Oct 10, 2015

    @memeplex
    ContributorAuthor

    The previous fix only reset readline after quit, but you can exit the debugger with cont and other commands, and also EOF (Ctrl-D). I relocated the finalization logic at the end of the interaction, see the PR. Seems to work fine but I have not seriously tested it.

  9. modified the milestones: 4.1, 4.0 on Oct 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions