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.
Now that we can import using
importlibI 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 forimportlibimport to work (_io,_thread). For example inio_openwe importiousing the old import so we can create an instance ofFileIO. 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
importin the modules used byimportlib? This will require us to have a struct that implementsPyValuefor every class.