diff options
author | Barry Warsaw <barry@python.org> | 2017-10-17 19:52:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 19:52:38 (GMT) |
commit | 191e3138200906e43cba9347177914325b54843f (patch) | |
tree | 56b77b61f9b986a892eac6ef425e646afb61ebde /Doc/reference | |
parent | 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604 (diff) | |
download | cpython-191e3138200906e43cba9347177914325b54843f.zip cpython-191e3138200906e43cba9347177914325b54843f.tar.gz cpython-191e3138200906e43cba9347177914325b54843f.tar.bz2 |
bpo-31799: Make module.__spec__ more discoverable (#4010)
bpo-31799: Make module.__spec__ more discoverable
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 8cf16ca..7fbf8ed 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -519,8 +519,9 @@ and the loader that executes it. Most importantly, it allows the import machinery to perform the boilerplate operations of loading, whereas without a module spec the loader had that responsibility. -See :class:`~importlib.machinery.ModuleSpec` for more specifics on what -information a module's spec may hold. +The module's spec is exposed as the ``__spec__`` attribute on a module object. +See :class:`~importlib.machinery.ModuleSpec` for details on the contents of +the module spec. .. versionadded:: 3.4 |