PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.49k stars 580 forks source link

Use sys.stdlib_module_names? #1881

Open wimglenn opened 2 years ago

wimglenn commented 2 years ago

In Python-3.10+ there is sys.stdlib_module_names which might be useful for this app.

There are currently some discrepancies:

>>> from isort.stdlibs.py310 import stdlib
>>> from sys import stdlib_module_names
>>> len(stdlib ^ stdlib_module_names)
94
anirudnits commented 2 years ago

@wimglenn Thanks for pointing this out! I'll surely have a look.