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
697c779d
Kaydet (Commit)
697c779d
authored
Haz 10, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adjust indexing for __import__(); based on comments by Stefan Franke
<sfranke@cdc-group.com>.
üst
28b17705
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
libfuncs.tex
Doc/lib/libfuncs.tex
+11
-12
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
697c779d
...
@@ -7,18 +7,17 @@ are always available. They are listed here in alphabetical order.
...
@@ -7,18 +7,17 @@ are always available. They are listed here in alphabetical order.
\setindexsubitem
{
(built-in function)
}
\setindexsubitem
{
(built-in function)
}
\begin{funcdesc}
{__
import
__}{
name
\optional
{
, globals
\optional
{
, locals
\optional
{
, fromlist
}}}}
\begin{funcdesc}
{__
import
__}{
name
\optional
{
, globals
\optional
{
, locals
\optional
{
, fromlist
}}}}
This function is invoked by the
\keyword
{
import
}
statement. It
This function is invoked by the
mainly exists so that you can replace it with another
\keyword
{
import
}
\stindex
{
import
}
statement. It mainly
function that has a compatible interface, in order to change the
exists so that you can replace it with another function that has a
semantics of the
\keyword
{
import
}
statement. For examples of why and
compatible interface, in order to change the semantics of the
how you would do this, see the standard library modules
\keyword
{
import
}
statement. For examples of why and how you would do
\module
{
ihooks
}
and
\module
{
rexec
}
. See also the built-in module
this, see the standard library modules
\module
{
imp
}
, which defines some useful operations out of which you can
\module
{
ihooks
}
\refstmodindex
{
ihooks
}
and
build your own
\function
{__
import
__
()
}
function.
\refmodule
{
rexec
}
\refstmodindex
{
rexec
}
. See also the built-in module
\stindex
{
import
}
\refmodule
{
imp
}
\refbimodindex
{
imp
}
, which defines some useful
\refstmodindex
{
ihooks
}
operations out of which you can build your own
\refstmodindex
{
rexec
}
\function
{__
import
__
()
}
function.
\refbimodindex
{
imp
}
For example, the statement `
\code
{
import
}
\code
{
spam
}
' results in the
For example, the statement `
\code
{
import
}
\code
{
spam
}
' results in the
following call:
following call:
...
...
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