1

Today by accident I found pressing escesc in a python interpreter lists the contents of the directory the interpreter was started from. Stranger still is that the sequence needs to be performed twice for it to work initially but afterwards works every time.

I couldn't find this feature documented anywhere and I am wondering if there are other undocumented features of the interpreter.

1 Answer 1

5

That's a feature of the terminal, not the interpreter. EscEsc is interpreted as Tab by your terminal, which your interpreter then further interprets as a completion request.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.