Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment: The recommended way is to use importlib.import_module(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue46953> _______________________________________