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
deed2153
Kaydet (Commit)
deed2153
authored
May 02, 2015
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge: #24081: Remove obsolete caveat from import docs.
üst
7b3b98c9
6d877ef0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
imp.rst
Doc/library/imp.rst
+0
-6
importlib.rst
Doc/library/importlib.rst
+0
-6
No files found.
Doc/library/imp.rst
Dosyayı görüntüle @
deed2153
...
...
@@ -149,12 +149,6 @@ This module provides an interface to the mechanisms used to implement the
There are a number of other caveats:
If a module is syntactically correct but its initialization fails, the first
:keyword:`import` statement for it does not bind its name locally, but does
store a (partially initialized) module object in ``sys.modules``. To reload the
module you must first :keyword:`import` it again (this will bind the name to the
partially initialized module object) before you can :func:`reload` it.
When a module is reloaded, its dictionary (containing the module's global
variables) is retained. Redefinitions of names will override the old
definitions, so this is generally not a problem. If the new version of a module
...
...
Doc/library/importlib.rst
Dosyayı görüntüle @
deed2153
...
...
@@ -159,12 +159,6 @@ Functions
There
are
a
number
of
other
caveats
:
If
a
module
is
syntactically
correct
but
its
initialization
fails
,
the
first
:
keyword
:`
import
`
statement
for
it
does
not
bind
its
name
locally
,
but
does
store
a
(
partially
initialized
)
module
object
in
``
sys
.
modules
``.
To
reload
the
module
you
must
first
:
keyword
:`
import
`
it
again
(
this
will
bind
the
name
to
the
partially
initialized
module
object
)
before
you
can
:
func
:`
reload
`
it
.
When
a
module
is
reloaded
,
its
dictionary
(
containing
the
module
's global
variables) is retained. Redefinitions of names will override the old
definitions, so this is generally not a problem. If the new version of a
...
...
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