← index #4923Issue #1759
Likely Duplicate · medium · value 2.318
QUERY · ISSUE

BUG: sys.modules['sys'] not pointing __import__('sys')

openby pmp-popened 2019-07-16updated 2019-07-16

Probably the same reason as :
https://github.com/micropython/micropython/issues/4427

CANDIDATE · ISSUE

builtin modules don't show up in sys.modules when imported

closedby dhylandsopened 2015-12-31updated 2024-08-28

I noticed that when you import builtin modules, like sys, time, os, that they don't show up in sys.modules. Is this intentional?

In CPython, builtin modules show up like:

'_io': <module 'io' (built-in)>

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied