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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top