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
c3e45490
Kaydet (Commit)
c3e45490
authored
Şub 19, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added \label{} for logical addressing.
üst
83efb545
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
libtypes.tex
Doc/lib/libtypes.tex
+16
-0
libtypes.tex
Doc/libtypes.tex
+16
-0
No files found.
Doc/lib/libtypes.tex
Dosyayı görüntüle @
c3e45490
...
@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
...
@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
implicitly used when an object is written by the
\code
{
print
}
statement.
implicitly used when an object is written by the
\code
{
print
}
statement.
\stindex
{
print
}
\stindex
{
print
}
\subsection
{
Truth Value Testing
}
\subsection
{
Truth Value Testing
}
\label
{
truth
}
Any object can be tested for truth value, for use in an
\code
{
if
}
or
Any object can be tested for truth value, for use in an
\code
{
if
}
or
\code
{
while
}
condition or as operand of the Boolean operations below.
\code
{
while
}
condition or as operand of the Boolean operations below.
...
@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
...
@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
\samp
{
or
}
\opindex
{
or
}
and
\samp
{
and
}
\opindex
{
and
}
always return one of
\samp
{
or
}
\opindex
{
or
}
and
\samp
{
and
}
\opindex
{
and
}
always return one of
their operands.)
their operands.)
\subsection
{
Boolean Operations
}
\subsection
{
Boolean Operations
}
\label
{
boolean
}
These are the Boolean operations, ordered by ascending priority:
These are the Boolean operations, ordered by ascending priority:
\indexii
{
Boolean
}{
operations
}
\indexii
{
Boolean
}{
operations
}
...
@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
...
@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
\end{description}
\end{description}
\subsection
{
Comparisons
}
\subsection
{
Comparisons
}
\label
{
comparisons
}
Comparison operations are supported by all objects. They all have the
Comparison operations are supported by all objects. They all have the
same priority (which is higher than that of the Boolean operations).
same priority (which is higher than that of the Boolean operations).
...
@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
...
@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
\opindex
{
in
}
\opindex
{
in
}
\opindex
{
not in
}
\opindex
{
not in
}
\subsection
{
Numeric Types
}
\subsection
{
Numeric Types
}
\label
{
typesnumeric
}
There are four numeric types:
\dfn
{
plain integers
}
,
\dfn
{
long integers
}
,
There are four numeric types:
\dfn
{
plain integers
}
,
\dfn
{
long integers
}
,
\dfn
{
floating point numbers
}
, and
\dfn
{
complex numbers
}
.
\dfn
{
floating point numbers
}
, and
\dfn
{
complex numbers
}
.
...
@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
...
@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
division by
\code
{
pow(2,
\var
{
n
}
)
}
without overflow check.
division by
\code
{
pow(2,
\var
{
n
}
)
}
without overflow check.
\end{description}
\end{description}
\subsection
{
Sequence Types
}
\subsection
{
Sequence Types
}
\label
{
typesseq
}
There are three sequence types: strings, lists and tuples.
There are three sequence types: strings, lists and tuples.
...
@@ -501,7 +511,9 @@ this side effect.
...
@@ -501,7 +511,9 @@ this side effect.
\end{description}
\end{description}
\subsection
{
Mapping Types
}
\subsection
{
Mapping Types
}
\label
{
typesmapping
}
A
\dfn
{
mapping
}
object maps values of one type (the key type) to
A
\dfn
{
mapping
}
object maps values of one type (the key type) to
arbitrary objects. Mappings are mutable objects. There is currently
arbitrary objects. Mappings are mutable objects. There is currently
...
@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
...
@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
and
\var
{
k
}
is not in the map,
\code
{
None
}
is returned.
and
\var
{
k
}
is not in the map,
\code
{
None
}
is returned.
\end{description}
\end{description}
\subsection
{
Other Built-in Types
}
\subsection
{
Other Built-in Types
}
\label
{
typesother
}
The interpreter supports several other kinds of objects.
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
Most of these support only one or two operations.
...
@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
...
@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
describes code objects, stack frame objects, traceback objects, and
describes code objects, stack frame objects, traceback objects, and
slice objects.
slice objects.
\subsection
{
Special Attributes
}
\subsection
{
Special Attributes
}
\label
{
specialattrs
}
The implementation adds a few special read-only attributes to several
The implementation adds a few special read-only attributes to several
object types, where they are relevant:
object types, where they are relevant:
...
...
Doc/libtypes.tex
Dosyayı görüntüle @
c3e45490
...
@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
...
@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
implicitly used when an object is written by the
\code
{
print
}
statement.
implicitly used when an object is written by the
\code
{
print
}
statement.
\stindex
{
print
}
\stindex
{
print
}
\subsection
{
Truth Value Testing
}
\subsection
{
Truth Value Testing
}
\label
{
truth
}
Any object can be tested for truth value, for use in an
\code
{
if
}
or
Any object can be tested for truth value, for use in an
\code
{
if
}
or
\code
{
while
}
condition or as operand of the Boolean operations below.
\code
{
while
}
condition or as operand of the Boolean operations below.
...
@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
...
@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
\samp
{
or
}
\opindex
{
or
}
and
\samp
{
and
}
\opindex
{
and
}
always return one of
\samp
{
or
}
\opindex
{
or
}
and
\samp
{
and
}
\opindex
{
and
}
always return one of
their operands.)
their operands.)
\subsection
{
Boolean Operations
}
\subsection
{
Boolean Operations
}
\label
{
boolean
}
These are the Boolean operations, ordered by ascending priority:
These are the Boolean operations, ordered by ascending priority:
\indexii
{
Boolean
}{
operations
}
\indexii
{
Boolean
}{
operations
}
...
@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
...
@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
\end{description}
\end{description}
\subsection
{
Comparisons
}
\subsection
{
Comparisons
}
\label
{
comparisons
}
Comparison operations are supported by all objects. They all have the
Comparison operations are supported by all objects. They all have the
same priority (which is higher than that of the Boolean operations).
same priority (which is higher than that of the Boolean operations).
...
@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
...
@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
\opindex
{
in
}
\opindex
{
in
}
\opindex
{
not in
}
\opindex
{
not in
}
\subsection
{
Numeric Types
}
\subsection
{
Numeric Types
}
\label
{
typesnumeric
}
There are four numeric types:
\dfn
{
plain integers
}
,
\dfn
{
long integers
}
,
There are four numeric types:
\dfn
{
plain integers
}
,
\dfn
{
long integers
}
,
\dfn
{
floating point numbers
}
, and
\dfn
{
complex numbers
}
.
\dfn
{
floating point numbers
}
, and
\dfn
{
complex numbers
}
.
...
@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
...
@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
division by
\code
{
pow(2,
\var
{
n
}
)
}
without overflow check.
division by
\code
{
pow(2,
\var
{
n
}
)
}
without overflow check.
\end{description}
\end{description}
\subsection
{
Sequence Types
}
\subsection
{
Sequence Types
}
\label
{
typesseq
}
There are three sequence types: strings, lists and tuples.
There are three sequence types: strings, lists and tuples.
...
@@ -501,7 +511,9 @@ this side effect.
...
@@ -501,7 +511,9 @@ this side effect.
\end{description}
\end{description}
\subsection
{
Mapping Types
}
\subsection
{
Mapping Types
}
\label
{
typesmapping
}
A
\dfn
{
mapping
}
object maps values of one type (the key type) to
A
\dfn
{
mapping
}
object maps values of one type (the key type) to
arbitrary objects. Mappings are mutable objects. There is currently
arbitrary objects. Mappings are mutable objects. There is currently
...
@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
...
@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
and
\var
{
k
}
is not in the map,
\code
{
None
}
is returned.
and
\var
{
k
}
is not in the map,
\code
{
None
}
is returned.
\end{description}
\end{description}
\subsection
{
Other Built-in Types
}
\subsection
{
Other Built-in Types
}
\label
{
typesother
}
The interpreter supports several other kinds of objects.
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
Most of these support only one or two operations.
...
@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
...
@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
describes code objects, stack frame objects, traceback objects, and
describes code objects, stack frame objects, traceback objects, and
slice objects.
slice objects.
\subsection
{
Special Attributes
}
\subsection
{
Special Attributes
}
\label
{
specialattrs
}
The implementation adds a few special read-only attributes to several
The implementation adds a few special read-only attributes to several
object types, where they are relevant:
object types, where they are relevant:
...
...
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