Skip to content

Removing the old import #1100

@palaviv

Description

@palaviv

Now that we can import using importlib I would like to remove the old import (import::import_module). The problem is that some of the modules that use the old import are needed for importlib import to work (_io, _thread). For example in io_open we import io using the old import so we can create an instance of FileIO. We can't use the new import as in that phase it is not initialized yet.
How do you think we should solve this problem? Should we remove all use of import in the modules used by importlib? This will require us to have a struct that implements PyValue for every class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions