| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -327,14 +327,15 @@ modules, and one that knows how to import modules from an :term:`import path` | |||
| 327 | 327 | finders replaced :meth:`!find_module`, which | |
| 328 | 328 | is now deprecated. While it will continue to work without change, the | |
| 329 | 329 | import machinery will try it only if the finder does not implement | |
| 330 | - ``find_spec()``. | ||
| 330 | + :meth:`~importlib.abc.MetaPathFinder.find_spec`. | ||
| 331 | 331 | ||
| 332 | 332 | .. versionchanged:: 3.10 | |
| 333 | 333 | Use of :meth:`!find_module` by the import system | |
| 334 | 334 | now raises :exc:`ImportWarning`. | |
| 335 | 335 | ||
| 336 | 336 | .. versionchanged:: 3.12 | |
| 337 | - ``find_module()`` has been removed. Use :meth:`find_spec` instead. | ||
| 337 | + :meth:`!find_module` has been removed. | ||
| 338 | + Use :meth:`~importlib.abc.MetaPathFinder.find_spec` instead. | ||
| 338 | 339 | ||
| 339 | 340 | ||
| 340 | 341 | Loading | |
@@ -812,7 +813,7 @@ attributes on package objects are also used. These provide additional ways | |||
| 812 | 813 | that the import machinery can be customized. | |
| 813 | 814 | ||
| 814 | 815 | :data:`sys.path` contains a list of strings providing search locations for | |
| 815 | - modules and packages. It is initialized from the :data:`PYTHONPATH` | ||
| 816 | + modules and packages. It is initialized from the :envvar:`PYTHONPATH` | ||
| 816 | 817 | environment variable and various other installation- and | |
| 817 | 818 | implementation-specific defaults. Entries in :data:`sys.path` can name | |
| 818 | 819 | directories on the file system, zip files, and potentially other "locations" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,6 @@ Doc/library/xmlrpc.server.rst | |||
| 106 | 106 | Doc/library/zlib.rst | |
| 107 | 107 | Doc/reference/compound_stmts.rst | |
| 108 | 108 | Doc/reference/datamodel.rst | |
| 109 | - Doc/reference/import.rst | ||
| 110 | 109 | Doc/tutorial/datastructures.rst | |
| 111 | 110 | Doc/using/windows.rst | |
| 112 | 111 | Doc/whatsnew/2.0.rst | |
| Back | FazBrowse Home | New Git URL |
0 commit comments