78d702c300
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959. |
||
---|---|---|
.. | ||
basics | ||
bench | ||
bytecode | ||
extmod | ||
float | ||
import | ||
inlineasm | ||
io | ||
micropython | ||
misc | ||
pyb | ||
pybnative | ||
unicode | ||
unix | ||
pyboard.py | ||
README | ||
run-bench-tests | ||
run-tests | ||
run-tests-exp.sh |
This directory contains tests for various functionality areas of MicroPython. To run all stable tests, run "run-tests" script in this directory. Note that bytecode tests are not yet stable and should be run separately in "bytecode" subdirectory. When creating new tests, anything that relies on float support should go in the float/ subdirectory. Anything that relies on import x, where x is not a built-in module, should go in the import/ subdirectory.