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
61c27034
Kaydet (Commit)
61c27034
authored
Tem 18, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added code.py; codehack.py is obsolete
üst
1c78cf33
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
5 deletions
+81
-5
Makefile
Doc/Makefile
+1
-1
lib.tex
Doc/lib.tex
+1
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libcode.tex
Doc/lib/libcode.tex
+35
-0
libundoc.tex
Doc/lib/libundoc.tex
+4
-2
libcode.tex
Doc/libcode.tex
+35
-0
libundoc.tex
Doc/libundoc.tex
+4
-2
No files found.
Doc/Makefile
Dosyayı görüntüle @
61c27034
...
...
@@ -112,7 +112,7 @@ LIBFILES = lib.tex \
libuser.tex libanydbm.tex librandom.tex libsite.tex libwhichdb.tex
\
libbase64.tex libfnmatch.tex libquopri.tex libzlib.tex libsocksvr.tex
\
libmailbox.tex libcommands.tex libcmath.tex libni.tex libgzip.tex
\
libpprint.tex
libpprint.tex
libcode.tex
# Library document
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib.tex
Dosyayı görüntüle @
61c27034
...
...
@@ -88,6 +88,7 @@ to Python and how to embed it in other applications.
\input
{
libni
}
\input
{
libparser
}
\input
{
libpprint
}
\input
{
libcode
}
\input
{
libsite
}
\input
{
libbltin
}
% really __builtin__
\input
{
libmain
}
% really __main__
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
61c27034
...
...
@@ -88,6 +88,7 @@ to Python and how to embed it in other applications.
\input
{
libni
}
\input
{
libparser
}
\input
{
libpprint
}
\input
{
libcode
}
\input
{
libsite
}
\input
{
libbltin
}
% really __builtin__
\input
{
libmain
}
% really __main__
...
...
Doc/lib/libcode.tex
0 → 100644
Dosyayı görüntüle @
61c27034
% Template for a library manual section.
\section
{
Standard module
\sectcode
{
code
}}
\label
{
module-code
}
\stmodindex
{
code
}
The
\code
{
code
}
module defines operations pertaining to Python code
objects.
The
\code
{
code
}
module defines the following functions:
\renewcommand
{
\indexsubitem
}{
(in module code)
}
\begin{funcdesc}
{
compile
_
command
}{
source
\,
\optional
{
filename
\optional
{
\,
symbol
}}}
This function is useful for programs that want to emulate Python's
interpreter main loop (a.k.a. the read-eval-print loop). The tricky
part is to determine when the user has entered an incomplete command
that can be completed by entering more text (as opposed to a complete
command or a syntax error). This function
\emph
{
almost
}
always makes
the same decision as the real interpreter main loop.
Arguments:
\var
{
source
}
is the source string;
\var
{
filename
}
is the
optional filename from which source was read, defaulting to
\code
{
"<input>"
}
; and
\var
{
symbol
}
is the optional grammar start
symbol, which should be either
\code
{
"single"
}
(the default) or
\code
{
"eval"
}
.
Return a code object (the same as
\code
{
compile(
\var
{
source
}
,
\var
{
filename
}
,
\var
{
symbol
}
)
}
) if the command is complete and valid;
return
\code
{
None
}
if the command is incomplete; raise
\code
{
SyntaxError
}
if the command is a syntax error.
\end{funcdesc}
Doc/lib/libundoc.tex
Dosyayı görüntüle @
61c27034
...
...
@@ -105,8 +105,6 @@ compileall.py -- force "compilation" of all .py files in a directory
py
_
compile.py -- "compile" a .py file to a .pyc file
codehack.py -- extract a function name from a code object
dis.py -- Disassembler for Python bytecode objects
repr.py -- Redo the `...` (representation) but with limits on most
...
...
@@ -183,6 +181,10 @@ fcntl.lockf/flock intead)
tb.py -- Print tracebacks, with a dump of local variables (use
pdb.pm() or traceback.py instead)
codehack.py -- extract function name or line number from a function
code object (these are now accessible as attributes: co.co
_
name,
func.func
_
name, co.co
_
firstlineno)
\section
{
Extension modules
}
...
...
Doc/libcode.tex
0 → 100644
Dosyayı görüntüle @
61c27034
% Template for a library manual section.
\section
{
Standard module
\sectcode
{
code
}}
\label
{
module-code
}
\stmodindex
{
code
}
The
\code
{
code
}
module defines operations pertaining to Python code
objects.
The
\code
{
code
}
module defines the following functions:
\renewcommand
{
\indexsubitem
}{
(in module code)
}
\begin{funcdesc}
{
compile
_
command
}{
source
\,
\optional
{
filename
\optional
{
\,
symbol
}}}
This function is useful for programs that want to emulate Python's
interpreter main loop (a.k.a. the read-eval-print loop). The tricky
part is to determine when the user has entered an incomplete command
that can be completed by entering more text (as opposed to a complete
command or a syntax error). This function
\emph
{
almost
}
always makes
the same decision as the real interpreter main loop.
Arguments:
\var
{
source
}
is the source string;
\var
{
filename
}
is the
optional filename from which source was read, defaulting to
\code
{
"<input>"
}
; and
\var
{
symbol
}
is the optional grammar start
symbol, which should be either
\code
{
"single"
}
(the default) or
\code
{
"eval"
}
.
Return a code object (the same as
\code
{
compile(
\var
{
source
}
,
\var
{
filename
}
,
\var
{
symbol
}
)
}
) if the command is complete and valid;
return
\code
{
None
}
if the command is incomplete; raise
\code
{
SyntaxError
}
if the command is a syntax error.
\end{funcdesc}
Doc/libundoc.tex
Dosyayı görüntüle @
61c27034
...
...
@@ -105,8 +105,6 @@ compileall.py -- force "compilation" of all .py files in a directory
py
_
compile.py -- "compile" a .py file to a .pyc file
codehack.py -- extract a function name from a code object
dis.py -- Disassembler for Python bytecode objects
repr.py -- Redo the `...` (representation) but with limits on most
...
...
@@ -183,6 +181,10 @@ fcntl.lockf/flock intead)
tb.py -- Print tracebacks, with a dump of local variables (use
pdb.pm() or traceback.py instead)
codehack.py -- extract function name or line number from a function
code object (these are now accessible as attributes: co.co
_
name,
func.func
_
name, co.co
_
firstlineno)
\section
{
Extension 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