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
db5a93cd
Kaydet (Commit)
db5a93cd
authored
Ara 04, 2001
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update docs to reflect new compile() and compileFile()
üst
86424e33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
compiler.tex
Doc/lib/compiler.tex
+18
-3
No files found.
Doc/lib/compiler.tex
Dosyayı görüntüle @
db5a93cd
...
...
@@ -57,9 +57,24 @@ appropriate method on the \var{visitor} instance for each node
encountered.
\end{funcdesc}
\begin{funcdesc}
{
compile
}{
path
}
Compile the file
\var
{
path
}
and generate the corresponding
\file
{
.pyc
}
file.
\begin{funcdesc}
{
compile
}{
source, filename, mode, flags=None,
dont
_
inherit=None
}
Compile the string
\var
{
source
}
, a Python module, statement or
expression, into a code object that can be executed by the exec
statement or
\function
{
eval()
}
. This function is a replacement for the
built-in
\function
{
compile()
}
function.
The
\var
{
filename
}
will be used for run-time error messages.
The
\var
{
mode
}
must be 'exec' to compile a module, 'single' to compile a
single (interactive) statement, or 'eval' to compile an expression.
The
\var
{
flags
}
and
\var
{
dont
_
inherit
}
arguments affect future-related
statements, but are not supported yet.
\end{funcdesc}
\begin{funcdesc}
{
compileFile
}{
source
}
Compiles the file
\var
{
source
}
and generates a .pyc file.
\end{funcdesc}
The
\module
{
compiler
}
package contains the following modules:
...
...
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