Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top