Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate sys.rs generation to stdlibs #11347

Closed
charliermarsh opened this issue May 9, 2024 · 0 comments · Fixed by #11374
Closed

Migrate sys.rs generation to stdlibs #11347

charliermarsh opened this issue May 9, 2024 · 0 comments · Fixed by #11374
Labels
good first issue Good for newcomers internal An internal refactor or improvement

Comments

@charliermarsh
Copy link
Member

This was brought to my attention via email. We have a script to generate https://github.com/astral-sh/ruff/blob/main/crates/ruff_python_stdlib/src/sys.rs, and it does this by polling (e.g.) https://docs.python.org/3.10/objects.inv.

There's a nice Python library we can use instead of objects.inv, which (IIUC) catches a bunch of other modules that aren't present there (e.g., _ssl): https://github.com/omnilib/stdlibs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant