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 steve.dower
Recipients gregory.p.smith, lukasz.langa, rikard.nordgren, steve.dower
Date 2021-05-06.18:59:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Looks like it was always getting lucky in the past, as sys.path requires strings, and the "path" argument here is an alternative to it. The cache was definitely not working as intended.

So while it's not clearly documented anywhere (other than the related pkgutil.extend_path() method saying it'll ignore non-str paths), we do need to only be passing str into _importlib_bootstrap.

I can't do the pkgutil updates right now, but I think it's just get_importer than needs an os.fsdecode() call around its argument. Maybe some others in the same module. And add tests :)
Date User Action Args
2021-05-06 18:59:14steve.dowersetrecipients: + steve.dower, gregory.p.smith, lukasz.langa, rikard.nordgren
2021-05-06 18:59:14steve.dowersetmessageid: <>
2021-05-06 18:59:14steve.dowerlinkissue44061 messages
2021-05-06 18:59:14steve.dowercreate