Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Qtconsole exit #311

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Owner

takluyver commented Mar 25, 2011

Typing 'exit' at the Qt console had stopped working, although 'Exit' still worked. The prefilter system wasn't picking 'exit' up as an automagic, because of the presence of the builtin 'exit' function, which is removed before user code runs.

This does the prefiltering inside our builtin_trap context manager, so it doesn't see the exit builtin, and detects it as an automagic instead.

Owner

fperez commented Mar 25, 2011

Thanks a lot! I rebased it on top of Robert's to avoid an unnecessary merge handle in the DAG, but content is unchanged. Commited as 67effcc.

@fperez fperez closed this Mar 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment