PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Importing Modules
importlib
importlib.abc
importlib.machinery
importlib.metadata
importlib.resources
importlib.resources.abc
importlib.util
modulefinder
pkgutil
runpy
zipimport
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Importing Modules
importlib
abc
machinery
metadata
resources
abc
util
modulefinder
pkgutil
runpy
zipimport
All modules
resolve_name
importlib.util
function
· Added in 3.3
(
source
)
resolve_name(name, package)
Resolve a relative module name to an absolute one.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.9
3.9:
To improve consistency with import statements, raise ImportError instead of ValueError for invalid relative import attempts.
0 Examples
No examples for importlib.util/resolve_name.
Log in
to add an example
See Also
No see-alsos for
importlib.util/resolve_name
Log in
to add a see-also
0 Notes
No notes for
resolve_name
Log in
to add a note