diff options
author | Brett Cannon <brett@python.org> | 2013-03-13 17:46:22 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-03-13 17:46:22 (GMT) |
commit | 2514b4871f59687d72a684b09ebfe485b60b5422 (patch) | |
tree | e5b7c6726021fb150ea59506c14082c337dd02b7 /Doc/library/imp.rst | |
parent | 8c457d26b1f4423a9435e4f30c0756e362cf3a22 (diff) | |
download | cpython-2514b4871f59687d72a684b09ebfe485b60b5422.zip cpython-2514b4871f59687d72a684b09ebfe485b60b5422.tar.gz cpython-2514b4871f59687d72a684b09ebfe485b60b5422.tar.bz2 |
Issue #17176: Document that imp.NullImporter is no longer inserted
into sys.path_importer_cache.
Diffstat (limited to 'Doc/library/imp.rst')
-rw-r--r-- | Doc/library/imp.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index 5cadda9..60d0105 100644 --- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -326,16 +326,17 @@ to indicate the search result of :func:`find_module`. with an existing directory or empty string raises :exc:`ImportError`. Otherwise, a :class:`NullImporter` instance is returned. - Python adds instances of this type to ``sys.path_importer_cache`` for any path - entries that are not directories and are not handled by any other path hooks on - ``sys.path_hooks``. Instances have only one method: - + Instances have only one method: .. method:: NullImporter.find_module(fullname [, path]) This method always returns ``None``, indicating that the requested module could not be found. + .. versionchanged:: 3.3 + ``None`` is inserted into ``sys.path_importer_cache`` instead of an + instance of :class:`NullImporter`. + .. _examples-imp: |