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
64c105d3
Kaydet (Commit)
64c105d3
authored
Agu 11, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added index entries.
Small markup nits.
üst
0506a431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
libimp.tex
Doc/lib/libimp.tex
+8
-5
No files found.
Doc/lib/libimp.tex
Dosyayı görüntüle @
64c105d3
...
@@ -12,8 +12,9 @@ functions:
...
@@ -12,8 +12,9 @@ functions:
\begin{funcdesc}
{
get
_
magic
}{}
\begin{funcdesc}
{
get
_
magic
}{}
\indexii
{
file
}{
byte-code
}
Return the magic string value used to recognize byte-compiled code
Return the magic string value used to recognize byte-compiled code
files (
``
\code
{
.pyc
}
files''
). (This value may be different for each
files (
\file
{
.pyc
}
files
). (This value may be different for each
Python version.)
Python version.)
\end{funcdesc}
\end{funcdesc}
...
@@ -22,8 +23,8 @@ Return a list of triples, each describing a particular type of module.
...
@@ -22,8 +23,8 @@ Return a list of triples, each describing a particular type of module.
Each triple has the form
\code
{
(
\var
{
suffix
}
,
\var
{
mode
}
,
Each triple has the form
\code
{
(
\var
{
suffix
}
,
\var
{
mode
}
,
\var
{
type
}
)
}
, where
\var
{
suffix
}
is a string to be appended to the
\var
{
type
}
)
}
, where
\var
{
suffix
}
is a string to be appended to the
module name to form the filename to search for,
\var
{
mode
}
is the mode
module name to form the filename to search for,
\var
{
mode
}
is the mode
string to pass to the built-in
\
code
{
open
}
function to open the fil
e
string to pass to the built-in
\
function
{
open()
}
function to open th
e
(this can be
\code
{
'r'
}
for text files or
\code
{
'rb'
}
for binary
file
(this can be
\code
{
'r'
}
for text files or
\code
{
'rb'
}
for binary
files), and
\var
{
type
}
is the file type, which has one of the values
files), and
\var
{
type
}
is the file type, which has one of the values
\constant
{
PY
_
SOURCE
}
,
\constant
{
PY
_
COMPILED
}
, or
\constant
{
PY
_
SOURCE
}
,
\constant
{
PY
_
COMPILED
}
, or
\constant
{
C
_
EXTENSION
}
, described below.
\constant
{
C
_
EXTENSION
}
, described below.
...
@@ -167,6 +168,7 @@ no such module.
...
@@ -167,6 +168,7 @@ no such module.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
load
_
compiled
}{
name, pathname, file
}
\begin{funcdesc}
{
load
_
compiled
}{
name, pathname, file
}
\indexii
{
file
}{
byte-code
}
Load and initialize a module implemented as a byte-compiled code file
Load and initialize a module implemented as a byte-compiled code file
and return its module object. If the module was already initialized,
and return its module object. If the module was already initialized,
it will be initialized
\emph
{
again
}
. The
\var
{
name
}
argument is used
it will be initialized
\emph
{
again
}
. The
\var
{
name
}
argument is used
...
@@ -200,8 +202,9 @@ to the source file. The \var{file} argument is the source
...
@@ -200,8 +202,9 @@ to the source file. The \var{file} argument is the source
file, open for reading as text, from the beginning.
file, open for reading as text, from the beginning.
It must currently be a real file
It must currently be a real file
object, not a user-defined class emulating a file. Note that if a
object, not a user-defined class emulating a file. Note that if a
properly matching byte-compiled file (with suffix
\file
{
.pyc
}
) exists,
properly matching byte-compiled file (with suffix
\file
{
.pyc
}
or
it will be used instead of parsing the given source file.
\file
{
.pyo
}
) exists, it will be used instead of parsing the given
source file.
\end{funcdesc}
\end{funcdesc}
...
...
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