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
2016-10-07 17:34:54
Comments
Leave a Comment

Please login to continue.