简体   繁体   中英

python interpreter command inputs

Today by accident I found pressing esc esc 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. Esc Esc is interpreted as Tab by your terminal, which your interpreter then further interprets as a completion request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM