dhylands wrote: ↑Thu Oct 18, 2018 4:15 pm
The bug is in the re module
As mentioned above, there's no (builtin) "re" module in MicroPython, only "ure". And "ure" works per the specification (that being absolutely smallest and not duplicating functionality already provided by MicroPython, like quoting).
However, there's a bug in some ports, where native MicroPython modules, starting with "u", are accessible by different name (Unix port for example doesn't have such a bug, so testing with it would show problem right away). Yes, it initially was conceived as a convenience, but long since has become mis-convenience. The rule of thumb is simple - someone developing for MicroPython should always use "u" modules, exactly how they're named in the docs:
http://docs.micropython.org/en/latest/l ... -libraries
The only reason to use non-"u" module is writing code which is compatible with CPython. Which can be called "advanced topic" given confessions like "I don't use cpython".
Oh, and the docs for ure module are updated to be more complete:
https://pycopy.readthedocs.io/en/latest ... y/ure.html