Skip to content

Make LazyImport get __module__ without resolution #31656

@videlec

Description

@videlec

In Python the __module__ attribute stands for the module name where a class or function is defined. However, modules themsevles do not have such attribute.

We propose to add a new attribute to LazyImport so that getting __module__ on the class does not trigger resolution of the lazily imported object.

This would solve #31643

Depends on #31650

Component: misc

Issue created by migration from https://trac.sagemath.org/ticket/31656

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions