Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow for built-in modules to be submodules #102700

Closed
Labels
3.10only security fixes3.11only security fixes3.12only security fixestopic-importlibtype-bugAn unexpected behavior, bug, or error
@kesmit13

Description

@kesmit13

Bug report

If you statically link a namespaced extension (such asnumpy.core._multiarray_umath) and add it to the inittab, it will not get loaded properly. In this case, the path to the extension is passed to theBultinImporter.find_spec method which causes it to returnNone. The path is a pointer to the namespace of the extension.

One possible fix would be to check for a. in the name of the extension being loaded. If it contains that, consider it to be a fully-qualified import path and check to see if that fully-qualified name is in the builtins list before moving on to other checks.

Your environment

  • CPython 3.10 (although I believe it's the same in newer versions)
  • Linux x86 and Wasm

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixes3.12only security fixestopic-importlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp