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 vstinner
Recipients corona10, ronaldoussoren, serhiy.storchaka, vstinner
Date 2021-01-19.16:37:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611074262.63.0.328501573303.issue42955@roundup.psfhosted.org>
In-reply-to
Content
> One (poorly thought out) option is to add sys._stdlib_path with the subsection of sys.path that contains the stdlib, and a function in importlib that returns if a spec is for a stdlib module.

There is already sysconfig.get_paths()['stdlib']. Maybe we need to add a new key for extension modules.

I don't think that these two options are exclusive. For me, it can even be a similar but different use case.
History
Date User Action Args
2021-01-19 16:37:42vstinnersetrecipients: + vstinner, ronaldoussoren, serhiy.storchaka, corona10
2021-01-19 16:37:42vstinnersetmessageid: <1611074262.63.0.328501573303.issue42955@roundup.psfhosted.org>
2021-01-19 16:37:42vstinnerlinkissue42955 messages
2021-01-19 16:37:42vstinnercreate