Skip to content

Allow for built-in modules to be submodules #102768

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

Closed
brettcannon opened this issue Mar 16, 2023 · 1 comment
Closed

Allow for built-in modules to be submodules #102768

brettcannon opened this issue Mar 16, 2023 · 1 comment
Labels
3.10 only security fixes 3.11 only security fixes 3.12 only security fixes topic-importlib type-bug An unexpected behavior, bug, or error

Comments

@brettcannon
Copy link
Member

As discovered while trying to get NumPy statically compiled into CPython for WASI, the built-in importer automatically rejects any built-in module name with a .. But honestly I don't know if there's a need to be so strict since there technically isn't a reason why a built-in module couldn't be a submodule.

@brettcannon brettcannon added type-bug An unexpected behavior, bug, or error topic-importlib 3.11 only security fixes 3.10 only security fixes 3.12 only security fixes labels Mar 16, 2023
@FFY00
Copy link
Member

FFY00 commented Mar 16, 2023

Closing in favor of GH-102700

@FFY00 FFY00 closed this as completed Mar 16, 2023
@FFY00 FFY00 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes 3.11 only security fixes 3.12 only security fixes topic-importlib type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants