by shakna · 6y ago · 0 comments
Which can be compiled to run on a standard platform, instead of the more common baremetal situation.
MicroPython does feature a REPL - though you can disable it so you can control UART in a more expected way.
A surprising amount of plain Python programs can run with the stripped down set.
Even though you won't find any of the referenced functions in sys. However, locals does work, as does builtins. You also get access to pip and a few other unexpected things like that.
And the sys.settrace tests are allowed to fail: [1]
PY_SYS_SETTRACE is a compile time option. It won't necessarily be a part of the build. I don't think it is by default on any of the ports at the moment, though I could be wrong.
Based on that, I'd call it an "unstable" part of the implementation at the moment.
[0] https://docs.micropython.org/en/latest/library/sys.html
[1] https://github.com/micropython/micropython/blob/master/tests...