Add import_ensure_initialized to import_module_level by youknowone · Pull Request #7076 · RustPython/RustPython
Wait for module initialization to complete when a module is already in sys.modules but still being initialized by another thread. Check __spec__._initializing and call _lock_unlock_module to block until the import finishes.
marked this pull request as ready for review
youknowone added a commit to youknowone/RustPython that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters