importlib.util.set_package()

@importlib.util.set_package

A decorator for importlib.abc.Loader.load_module() to set the __package__ attribute on the returned module. If __package__ is set and has a value other than None it will not be changed.

Deprecated since version 3.4: The import machinery takes care of this automatically.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.