summaryrefslogtreecommitdiffstatshomepage
path: root/examples/usercmodule/cppexample/examplemodule.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-05-12 17:07:24 +1000
committerDamien George <damien@micropython.org>2023-06-01 16:21:37 +1000
commit6a8114eee8ff486d812b4efc5a94880b565640f3 (patch)
treec0fc5e7a06e05cb90db952ce59824521d5dc87fc /examples/usercmodule/cppexample/examplemodule.c
parented90f30dd5d39e958ce99c041f1dc1f9dbb63bb2 (diff)
downloadmicropython-6a8114eee8ff486d812b4efc5a94880b565640f3.tar.gz
micropython-6a8114eee8ff486d812b4efc5a94880b565640f3.zip
py/objmodule: Don't use sys.modules to track a builtin __init__.
This can lead to duplicate initialisations if a module can be imported via multiple names, so the module must track this itself anyway. This reduces code size (diff is -40 bytes), and avoids special treatment of builtin-modules-with-init with respect to sys.modules. No other builtin modules get put into sys.modules. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/usercmodule/cppexample/examplemodule.c')
0 files changed, 0 insertions, 0 deletions