bpo-42955: Remove sub-packages from sys.stdlib_module_names#24353
bpo-42955: Remove sub-packages from sys.stdlib_module_names#24353vstinner merged 1 commit intopython:masterfrom vstinner:remove_subpackages
Conversation
This is unrelated to my PR, |
|
@gaborbernat @warsaw @gpshead: What do you think of this change? |
|
To me, this makes sense. The use case we've had at work for an official list of what modules are in the standard library has been in code health tooling. Sorting stdlib imports before others, etc. Only the top level package names are important there. |
|
Merged, thanks @gpshead. Well, I wasn't fully comfortable with the half-baken trade-off: include sub-packages but not sub-modules. IMO the new API is now more consistent: only list main packages. |
|
https://bugs.python.org/issue42955