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
4756bb3e
Kaydet (Commit)
4756bb3e
authored
Agu 11, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documentation for the py_compile module.
üst
64c105d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
libpycompile.tex
Doc/lib/libpycompile.tex
+35
-0
No files found.
Doc/lib/libpycompile.tex
0 → 100644
Dosyayı görüntüle @
4756bb3e
% Documentation based on module docstrings, by Fred L. Drake, Jr.
% <fdrake@acm.org>
\section
{
\module
{
py
_
compile
}
---
Compile Python source files.
}
\declaremodule
[pycompile]
{
standard
}{
py
_
compile
}
\modulesynopsis
{
Compile Python source files to byte-code files.
}
\indexii
{
file
}{
byte-code
}
The
\module
{
py
_
compile
}
module provides a single function to generate
a byte-code file from a source file.
Though not often needed, this function can be useful when installing
modules for shared use, especially if some of the users may not have
permission to write the byte-code cache files in the directory
containing the source code.
\begin{funcdesc}
{
compile
}{
file
\optional
{
, cfile
\optional
{
, dfile
}}}
Compile a source file to byte-code and write out the byte-code cache
file. The source code is loaded from the file name
\var
{
file
}
. The
byte-code is written to
\var
{
cfile
}
, which defaults to
\var
{
file
}
\code
{
+
}
\code
{
'c'
}
(
\code
{
'o'
}
if optimization is enabled in the
current interpreter). If
\var
{
dfile
}
is specified, it is used as
the name of the source file in error messages instead of
\var
{
file
}
.
\end{funcdesc}
\begin{seealso}
\seemodule
{
compileall
}{
Utilities to compile all Python source files
in a directory tree.
}
\end{seealso}
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