Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
115309ac
Kaydet (Commit)
115309ac
authored
Mar 13, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17176: Document that imp.NullImporter is no longer
automatically used by import.
üst
a142a343
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
imp.rst
Doc/library/imp.rst
+5
-4
sys.rst
Doc/library/sys.rst
+6
-3
No files found.
Doc/library/imp.rst
Dosyayı görüntüle @
115309ac
...
@@ -326,16 +326,17 @@ to indicate the search result of :func:`find_module`.
...
@@ -326,16 +326,17 @@ to indicate the search result of :func:`find_module`.
with an existing directory or empty string raises :exc:`ImportError`.
with an existing directory or empty string raises :exc:`ImportError`.
Otherwise, a :class:`NullImporter` instance is returned.
Otherwise, a :class:`NullImporter` instance is returned.
Python adds instances of this type to ``sys.path_importer_cache`` for any path
Instances have only one method:
entries that are not directories and are not handled by any other path hooks on
``sys.path_hooks``. Instances have only one method:
.. method:: NullImporter.find_module(fullname [, path])
.. method:: NullImporter.find_module(fullname [, path])
This method always returns ``None``, indicating that the requested module could
This method always returns ``None``, indicating that the requested module could
not be found.
not be found.
.. versionchanged:: 3.3
``None`` is inserted into ``sys.path_importer_cache`` instead of an
instance of :class:`NullImporter`.
.. _examples-imp:
.. _examples-imp:
...
...
Doc/library/sys.rst
Dosyayı görüntüle @
115309ac
...
@@ -770,12 +770,15 @@ always available.
...
@@ -770,12 +770,15 @@ always available.
A dictionary acting as a cache for :term:`finder` objects. The keys are
A dictionary acting as a cache for :term:`finder` objects. The keys are
paths that have been passed to :data:`sys.path_hooks` and the values are
paths that have been passed to :data:`sys.path_hooks` and the values are
the finders that are found. If a path is a valid file system path but no
the finders that are found. If a path is a valid file system path but no
explicit finder is found on :data:`sys.path_hooks` then ``None`` is
finder is found on :data:`sys.path_hooks` then ``None`` is
stored to represent the implicit default finder should be used. If the path
stored.
is not an existing path then :class:`imp.NullImporter` is set.
Originally specified in :pep:`302`.
Originally specified in :pep:`302`.
.. versionchanged:: 3.3
``None`` is stored instead of :class:`imp.NullImporter` when no finder
is found.
.. data:: platform
.. data:: platform
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment