Skip to content

Move most readline code from InteractiveShell to terminal subclass#9070

Merged
minrk merged 1 commit intoipython:masterfrom
takluyver:readline-to-terminal-subclass
Jan 13, 2016
Merged

Move most readline code from InteractiveShell to terminal subclass#9070
minrk merged 1 commit intoipython:masterfrom
takluyver:readline-to-terminal-subclass

Conversation

@takluyver
Copy link
Member

This is the first stage of my effort to use prompt_toolkit for the terminal interface.

My plan is to create a new subclass of InteractiveShell which deals with the terminal using prompt_toolkit instead of readline. To facilitate this, I am first trying to separate as much of the readline code as possible out of InteractiveShell to the TerminalInteractiveShell subclass (I don't intend the new subclass to inherit from TIS).

I haven't moved any of the config options relating to readline yet, because moving them will break some people's existing config files. But if we're switching to prompt_toolkit by default, readline related config is going to be broken anyway.

This is the first stage of my effort to use prompt_toolkit for the
terminal interface.

My plan is to create a new subclass of InteractiveShell which deals with
the terminal using prompt_toolkit instead of readline. To facilitate
this, I am first trying to separate as much of the readline code as
possible out of InteractiveShell to the TerminalInteractiveShell
subclass (I don't intend the new subclass to inherit from TIS).

I haven't moved any of the config options relating to readline yet,
because moving them will break some people's existing config files. But
if we're switching to prompt_toolkit by default, readline related config
is going to be broken anyway.
@takluyver takluyver added this to the 4.1 milestone Jan 13, 2016
@takluyver
Copy link
Member Author

Milestoned for 4.1. This should have no functional changes, it's just moving some code to a more appropriate place.

minrk added a commit that referenced this pull request Jan 13, 2016
Move most readline code from InteractiveShell to terminal subclass
@minrk minrk merged commit 3d4ecd6 into ipython:master Jan 13, 2016
@takluyver
Copy link
Member Author

Thanks, Min

@takluyver takluyver deleted the readline-to-terminal-subclass branch January 13, 2016 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants