Files
micropython/tests/basics
Alessandro Gatti cc62017317 py/modbuiltins: Let "dir" be disabled if requested.
This commit makes it possible to disable the `dir` built-in function
from being included in the interpreter image.

The function in question is rarely used outside of interactive contexts,
and in production code the main use of this function is to implement
interactive debug/management consoles over a serial port.  However,
outside of that scope, the space taken by such function could probably
be better used elsewhere.

This feature inherits the same configuration level as `enumerate`, since
it performs the same operation but on class members rather than data
elements.  This should be enabled by default on all ports except for
`nrf` (for which it is now explicitly enabled) and the `minimal`
variants of the `unix` and `zephyr` ports.  The latter two ports are
meant to also run with the smallest available feature set, so
`tests/basics/builtin_dir.py` had to be made optional to make CI run
cleanly for those two ports' test runs in their minimal configuration.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-05-10 01:02:39 +02:00
..
2014-03-31 18:02:22 +01:00
2024-03-07 16:25:17 +11:00
2024-03-07 16:25:17 +11:00
2024-03-07 16:25:17 +11:00
2024-03-07 16:25:17 +11:00
2017-05-29 11:36:05 +03:00
2014-02-10 07:13:32 +02:00
2014-04-13 17:46:30 +01:00