Message385270
Ronald:
> BTW. A list of stdlib module names is not sufficient to determine if a module is in the stdlib, thanks to .pth files it is possible to have entries on sys.path before the stdlib.
Yeah, I wrote it in my first message. I solved this issue with documentation:
"Note: If a third party module has the same name than a standard library module and it comes before the standard library in sys.path, it overrides the standard library module on import."
I updated sys.module_names documentation in my PR.
IMO it's an acceptable limitation. |
|
Date |
User |
Action |
Args |
2021-01-19 16:15:13 | vstinner | set | recipients:
+ vstinner, ronaldoussoren, serhiy.storchaka, corona10 |
2021-01-19 16:15:13 | vstinner | set | messageid: <1611072913.12.0.778215394852.issue42955@roundup.psfhosted.org> |
2021-01-19 16:15:13 | vstinner | link | issue42955 messages |
2021-01-19 16:15:13 | vstinner | create | |
|