Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
2ebf8ce488b64fb4a205e6b94de309d56cf387d2
cpython/Lib/importlib/util.py

6 lines
166 B
Python
Raw Normal View History

Implement the more specific PEP 302 semantics for loaders and what happens upon load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely.
2009-02-17 02:45:03 +00:00
"""Utility code for constructing importers, etc."""
PEP 3147
2010-04-17 00:19:56 +00:00
Implement the more specific PEP 302 semantics for loaders and what happens upon load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely.
2009-02-17 02:45:03 +00:00
from ._bootstrap import module_for_loader
Implement importlib.util.set_loader: a decorator to automatically set __loader__ on modules.
2009-03-10 05:17:37 +00:00
from ._bootstrap import set_loader
Rename importlib.util.set___package__ to set_package.
2009-03-04 16:07:00 +00:00
from ._bootstrap import set_package
Reference in New Issue Copy Permalink
Powered by Gitea Page: 1050ms Template: 13ms
English
English
Licenses API