Message336138
Thanks for the report, but importlib.import_module() doesn't accept a path of a Python module:
https://docs.python.org/3/library/importlib.html#importlib.import_module
So, the correct way to use the API is:
import importlib
importlib.import_module('poc')
Whether we should explicitly reject passing a file path to import_module() is up to the importlib maintainers. |
|
Date |
User |
Action |
Args |
2019-02-20 19:13:46 | berker.peksag | set | recipients:
+ berker.peksag, brett.cannon, majuscule |
2019-02-20 19:13:46 | berker.peksag | set | messageid: <1550690026.35.0.114586567306.issue36056@roundup.psfhosted.org> |
2019-02-20 19:13:46 | berker.peksag | link | issue36056 messages |
2019-02-20 19:13:46 | berker.peksag | create | |
|