[issue23947] Add mechanism to import stdlib package bypassing user packages

2021-12-07 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue23947] Add mechanism to import stdlib package bypassing user packages

2015-04-14 Thread Brett Cannon
Brett Cannon added the comment: Just so I don't forget, we also discussed introducing something like importlib.import_stdlib_module() which does what Steve mentions. That would handle aliasing in sys.modules cleanly. In the situation where the module is already in sys.modules and not the same

[issue23947] Add mechanism to import stdlib package bypassing user packages

2015-04-14 Thread Steve Dower
New submission from Steve Dower: There are some situations where the stdlib imports modules that could be absent, notably "import readline" in site.py. This import is expected to fail in some situations, but because sys.path is fully configured it can be importing arbitrary code. To limit the