[issue30247] Make importlib.machinery class handle os.PathLike path

Serhiy Storchaka report at bugs.python.org
Wed May 3 09:08:03 EDT 2017


Serhiy Storchaka added the comment:

I'm not sure it's a good idea. FileLoader, FileFinder, and other classes usually are a part of import machinery, they can have other restrictions on path type than general filesystem related functions. This change has a non-zero cost, it complicates the code and makes it slower. Do you have a use case for using these classes with a path different from None or str?

----------
nosy: +eric.snow, ncoghlan, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30247>
_______________________________________


More information about the Python-bugs-list mailing list