circuitpython/shared
Jim Mussared 5e50975a6d py/modsys: Allow sys.path to be assigned to.
Previously sys.path could be modified by append/pop or slice assignment.

This allows `sys.path = [...]`, which can be simpler in many cases, but
also improves CPython compatibility.

It also allows sys.path to be set to a tuple which means that you can
clear sys.path (e.g. temporarily) with no allocations.

This also makes sys.path (and sys.argv for consistency) able to be disabled
via mpconfig. The unix port (and upytesthelper) require them, so they
explicitly verify that they're enabled.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-06-08 17:54:24 +10:00
..
libc shared/libc/printf: Fix stdout destination for putchar and puts. 2023-05-31 16:08:44 +10:00
memzip all: Fix various Python coding inconsistencies found by ruff. 2023-05-02 16:14:45 +10:00
netutils all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
readline shared/readline: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:48:49 +10:00
runtime all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
timeutils mimxrt/machine_rtc: Start RTC at boot and set datetime if not set. 2022-04-11 12:25:23 +10:00
tinyusb all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
upytesthelper py/modsys: Allow sys.path to be assigned to. 2023-06-08 17:54:24 +10:00
README.md lib,shared: Update README's based on contents of these dirs. 2021-07-13 00:17:02 +10:00

README.md

This directory contains libraries, utilities and helper code developed specifically for this project. The code is intended to be portable and usable by any port.