py/repl: Autocomplete builtin modules.

Doing "import <tab>" will now complete/list built-in modules.

Originally at adafruit#4548 and adafruit#4608

Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
This commit is contained in:
Artyom Skrobov
2021-04-03 16:56:02 -04:00
committed by Damien George
parent 7556e01f14
commit ca35c0059c
3 changed files with 43 additions and 12 deletions

View File

@@ -27,6 +27,20 @@ RuntimeError:
RuntimeError:
# repl
ame__
mport
builtins micropython _thread _uasyncio
btree cexample cmath cppexample
ffi framebuf gc math
termios uarray ubinascii ucollections
ucryptolib uctypes uerrno uhashlib
uheapq uio ujson umachine
uos urandom ure uselect
usocket ussl ustruct usys
utime utimeq uwebsocket uzlib
ime
utime utimeq
argv atexit byteorder exc_info
exit getsizeof implementation maxsize