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

Specialize LOAD_ATTR for modules which define__getattr__ #143469

Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage
@kumaraditya303

Description

@kumaraditya303

This came up innumpy/numpy#30494

Currently the LOAD_ATTR specialization for modules does not happen when the module defines__getattr__. However as perhttps://peps.python.org/pep-0562/#specification,__getattr__ is executed only when the attribute is not present in module's dict so we can still specialize if the attribute is present in module's dict.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp