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
933142a8
Kaydet (Commit)
933142a8
authored
Ara 07, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
document that compile() can take bytes (closes #19910)
üst
d4d60554
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
functions.rst
Doc/library/functions.rst
+3
-3
bltinmodule.c
Python/bltinmodule.c
+1
-1
No files found.
Doc/library/functions.rst
Dosyayı görüntüle @
933142a8
...
...
@@ -193,9 +193,9 @@ are always available. They are listed here in alphabetical order.
.. function:: compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)
Compile the *source* into a code or AST object. Code objects can be executed
by :func:`exec` or :func:`eval`. *source* can either be a
string or an AST
object. Refer to the :mod:`ast` module documentation for information on how
to work with AST objects.
by :func:`exec` or :func:`eval`. *source* can either be a
normal string, a
byte string, or an AST object. Refer to the :mod:`ast` module documentation
for information on how
to work with AST objects.
The *filename* argument should give the file from which the code was read;
pass some recognizable value if it wasn't read from a file (``'<string>'`` is
...
...
Python/bltinmodule.c
Dosyayı görüntüle @
933142a8
...
...
@@ -676,7 +676,7 @@ finally:
PyDoc_STRVAR
(
compile_doc
,
"compile(source, filename, mode[, flags[, dont_inherit]]) -> code object
\n
\
\n
\
Compile the source
string
(a Python module, statement or expression)
\n
\
Compile the source (a Python module, statement or expression)
\n
\
into a code object that can be executed by exec() or eval().
\n
\
The filename will be used for run-time error messages.
\n
\
The mode must be 'exec' to compile a module, 'single' to compile a
\n
\
...
...
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