aboutsummaryrefslogtreecommitdiff
path: root/examples/natmod
AgeCommit message (Collapse)Author
2020-06-08extmod/ure: Use single function for match/search/sub.stijn
Saves about 500 bytes on unix x64 and enables CPython-conform usage of passing a re object to these functions.
2020-05-02extmod/modbtree: Retain reference to underlying stream so it's not GC'd.Damien George
For ports that have a system malloc which is not garbage collected (eg unix, esp32), the stream object for the DB must be retained separately to prevent it from being reclaimed by the MicroPython GC (because the berkeley-db library uses malloc to allocate the DB structure which stores the only reference to the stream). Although in some cases the user code will explicitly retain a reference to the underlying stream because it needs to call close() on it, this is not always the case, eg in cases where the DB is intended to live forever. Fixes issue #5940.
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-04-05py/dynruntime.mk: Set MICROPY_ENABLE_DYNRUNTIME instead of per module.Jim Mussared
So this setting could be used by other source files if needed.
2020-03-03examples/natmod: Add .gitignore to ignore generated example .mpy files.Damien George
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-12-19examples/natmod: Add very simple features0 example to compute factorial.Damien George
2019-12-13examples/natmod: Add urandom native module example.Damien George
2019-12-12examples/natmod: Add features1 and features2 examples.Damien George
2019-12-12examples/natmod: Add ure example.Damien George
2019-12-12examples/natmod: Add framebuf example.Damien George
2019-12-12examples/natmod: Add uzlib example.Damien George
2019-12-12examples/natmod: Add uheapq example.Damien George
2019-12-12examples/natmod: Add btree example.Damien George