From aa843d1aeab9902c8c01f4a71d044726aeba6a23 Mon Sep 17 00:00:00 2001 From: Windson yang Date: Tue, 14 May 2019 08:35:27 +0800 Subject: [PATCH 1/2] bpo-30535: Explicitly note that sys.meta_path is not empty --- Doc/library/sys.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 591972e9b783a0..251d794984f6c2 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -926,7 +926,8 @@ always available. A list of :term:`meta path finder` objects that have their :meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one - of the objects can find the module to be imported. The + of the objects can find the module to be imported. By default, it holds entries + to handle the standard kinds of modules (.py files, extension modules...). The :meth:`~importlib.abc.MetaPathFinder.find_spec` method is called with at least the absolute name of the module being imported. If the module to be imported is contained in a package, then the parent package's :attr:`__path__` From 286bf73a893d2c50bf82f3915dc2be48ce4f1023 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Tue, 21 Jun 2022 22:15:47 +0100 Subject: [PATCH 2/2] apply Brett's code review comment --- Doc/library/sys.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 251d794984f6c2..cee6837d726dae 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -927,7 +927,7 @@ always available. A list of :term:`meta path finder` objects that have their :meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one of the objects can find the module to be imported. By default, it holds entries - to handle the standard kinds of modules (.py files, extension modules...). The + that implement Python's default import semantics. The :meth:`~importlib.abc.MetaPathFinder.find_spec` method is called with at least the absolute name of the module being imported. If the module to be imported is contained in a package, then the parent package's :attr:`__path__`