py-demandimport icon indicating copy to clipboard operation
py-demandimport copied to clipboard

Replace modules with correctly loaded modules after loading

Open skjerns opened this issue 3 years ago • 2 comments

Currently, even after the actual loading of the library has taken place the __repr__ of the proxy is returned.

Would it be a solution to replace the proxy module with the actual module once it has been loaded?

skjerns avatar Mar 24 '22 12:03 skjerns

How would you suggest achieving this?

bwesterb avatar Mar 28 '22 12:03 bwesterb

Wasn't there some sort of table storing module objects in Python somewhere in os or sys modules?

Asmageddon avatar Jun 20 '23 09:06 Asmageddon