Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I concur with Berker. Since the argument of importlib.import_module() is not a 
path, pathlib.Path is not valid here.

It is uncommon in Python to check the type of arguments explicitly. 
pathlib.Path is not more special than list or tkinter.Button.

----------
nosy: +serhiy.storchaka
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to