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
ea6e19c3
Kaydet (Commit)
ea6e19c3
authored
Mar 07, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added code objects
üst
3d54de2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
libtypes.tex
Doc/lib/libtypes.tex
+22
-0
libtypes.tex
Doc/libtypes.tex
+22
-0
No files found.
Doc/lib/libtypes.tex
Dosyayı görüntüle @
ea6e19c3
...
@@ -505,6 +505,7 @@ global name space (this is the same as \code{\var{m}.__dict__} where
...
@@ -505,6 +505,7 @@ global name space (this is the same as \code{\var{m}.__dict__} where
\var
{
m
}
is the module in which the function
\var
{
f
}
was defined).
\var
{
m
}
is the module in which the function
\var
{
f
}
was defined).
\subsubsection
{
Methods.
}
\subsubsection
{
Methods.
}
\obindex
{
method
}
Methods are functions that are called using the attribute notation.
Methods are functions that are called using the attribute notation.
There are two flavors: built-in methods (such as
\code
{
append()
}
on
There are two flavors: built-in methods (such as
\code
{
append()
}
on
...
@@ -521,6 +522,27 @@ Calling \code{\var{m}(\var{arg-1}, \var{arg-2}, {\rm \ldots},
...
@@ -521,6 +522,27 @@ Calling \code{\var{m}(\var{arg-1}, \var{arg-2}, {\rm \ldots},
(See the Python Reference Manual for more info.)
(See the Python Reference Manual for more info.)
\subsubsection
{
Code Objects.
}
\obindex
{
code
}
Code objects are used by the implementation to represent
``pseudo-compiled'' executable Python code such as a function body.
They differ from function objects because they don't contain a
reference to their global execution environment. Code objects are
returned by the built-in
\code
{
compile()
}
function and can be
extracted from function objects through their
\code
{
func
_
code
}
attribute.
\bifuncindex
{
compile
}
\ttindex
{
func
_
code
}
A code object can be executed or evaluated by passing it (instead of a
source string) to the
\code
{
exec
}
statement or the built-in
\code
{
eval()
}
function.
\stindex
{
exec
}
\bifuncindex
{
eval
}
(See the Python Reference Manual for more info.)
\subsubsection
{
Type Objects.
}
\subsubsection
{
Type Objects.
}
Type objects represent the various object types. An object's type is
Type objects represent the various object types. An object's type is
...
...
Doc/libtypes.tex
Dosyayı görüntüle @
ea6e19c3
...
@@ -505,6 +505,7 @@ global name space (this is the same as \code{\var{m}.__dict__} where
...
@@ -505,6 +505,7 @@ global name space (this is the same as \code{\var{m}.__dict__} where
\var
{
m
}
is the module in which the function
\var
{
f
}
was defined).
\var
{
m
}
is the module in which the function
\var
{
f
}
was defined).
\subsubsection
{
Methods.
}
\subsubsection
{
Methods.
}
\obindex
{
method
}
Methods are functions that are called using the attribute notation.
Methods are functions that are called using the attribute notation.
There are two flavors: built-in methods (such as
\code
{
append()
}
on
There are two flavors: built-in methods (such as
\code
{
append()
}
on
...
@@ -521,6 +522,27 @@ Calling \code{\var{m}(\var{arg-1}, \var{arg-2}, {\rm \ldots},
...
@@ -521,6 +522,27 @@ Calling \code{\var{m}(\var{arg-1}, \var{arg-2}, {\rm \ldots},
(See the Python Reference Manual for more info.)
(See the Python Reference Manual for more info.)
\subsubsection
{
Code Objects.
}
\obindex
{
code
}
Code objects are used by the implementation to represent
``pseudo-compiled'' executable Python code such as a function body.
They differ from function objects because they don't contain a
reference to their global execution environment. Code objects are
returned by the built-in
\code
{
compile()
}
function and can be
extracted from function objects through their
\code
{
func
_
code
}
attribute.
\bifuncindex
{
compile
}
\ttindex
{
func
_
code
}
A code object can be executed or evaluated by passing it (instead of a
source string) to the
\code
{
exec
}
statement or the built-in
\code
{
eval()
}
function.
\stindex
{
exec
}
\bifuncindex
{
eval
}
(See the Python Reference Manual for more info.)
\subsubsection
{
Type Objects.
}
\subsubsection
{
Type Objects.
}
Type objects represent the various object types. An object's type is
Type objects represent the various object types. An object's type is
...
...
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