This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients berker.peksag, brett.cannon, majuscule
Date 2019-02-20.19:13:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550690026.35.0.114586567306.issue36056@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-02-20 19:13:46berker.peksagsetrecipients: + berker.peksag, brett.cannon, majuscule
2019-02-20 19:13:46berker.peksagsetmessageid: <1550690026.35.0.114586567306.issue36056@roundup.psfhosted.org>
2019-02-20 19:13:46berker.peksaglinkissue36056 messages
2019-02-20 19:13:46berker.peksagcreate