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
4b4e38e7
Kaydet (Commit)
4b4e38e7
authored
May 25, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mention __cached__ in the import ref.
üst
533f1ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
import.rst
Doc/reference/import.rst
+5
-1
No files found.
Doc/reference/import.rst
Dosyayı görüntüle @
4b4e38e7
...
@@ -353,7 +353,11 @@ Loaders must satisfy the following requirements:
...
@@ -353,7 +353,11 @@ Loaders must satisfy the following requirements:
*
The
loader
may
set
the
``
__file__
``
attribute
of
the
module
.
If
set
,
this
*
The
loader
may
set
the
``
__file__
``
attribute
of
the
module
.
If
set
,
this
attribute
's value must be a string. The loader may opt to leave
attribute
's value must be a string. The loader may opt to leave
``__file__`` unset if it has no semantic meaning (e.g. a module loaded from
``__file__`` unset if it has no semantic meaning (e.g. a module loaded from
a database).
a database). If ``__file__`` is set, it may also be appropriate to set the
``__cached__`` attribute which is the path to any compiled version of the
code (e.g. byte-compiled file). The file does not need to exist to set this
attribute; the path can simply point to whether the compiled file would
exist (see :pep:`3147`).
* The loader may set the ``__name__`` attribute of the module. While not
* The loader may set the ``__name__`` attribute of the module. While not
required, setting this attribute is highly recommended so that the
required, setting this attribute is highly recommended so that the
...
...
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