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
98b032a7
Kaydet (Commit)
98b032a7
authored
Ara 04, 1997
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unnecessary escaping.
üst
1cf87496
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
78 deletions
+78
-78
liboperator.tex
Doc/lib/liboperator.tex
+39
-39
liboperator.tex
Doc/liboperator.tex
+39
-39
No files found.
Doc/lib/liboperator.tex
Dosyayı görüntüle @
98b032a7
...
...
@@ -7,49 +7,49 @@ The \code{operator} module exports a set of functions implemented in C
corresponding to the intrinsic operators of Python. For example,
{}
\code
{
operator.add(x, y)
}
is equivalent to the expression x+y. The
function names are those used for special class methods; variants without
leading and trailing
'
\_\_
'
are also provided for convenience.
leading and trailing
\samp
{__}
are also provided for convenience.
The
\code
{
operator
}
module defines the following functions:
\renewcommand
{
\indexsubitem
}{
(in module operator)
}
\begin{funcdesc}
{
add
}{
a
\
,
b
}
\begin{funcdesc}
{
add
}{
a, b
}
Return a + b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
add
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
add
__}{
a
, b
}
Return a + b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
sub
}{
a
\
,
b
}
\begin{funcdesc}
{
sub
}{
a, b
}
Return a - b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
sub
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
sub
__}{
a
, b
}
Return a - b.
\end{funcdesc}
\begin{funcdesc}
{
mul
}{
a
\
,
b
}
\begin{funcdesc}
{
mul
}{
a, b
}
Return a * b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
mul
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
mul
__}{
a
, b
}
Return a * b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
div
}{
a
\
,
b
}
\begin{funcdesc}
{
div
}{
a, b
}
Return a / b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
div
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
div
__}{
a
, b
}
Return a / b.
\end{funcdesc}
\begin{funcdesc}
{
mod
}{
a
\
,
b
}
\begin{funcdesc}
{
mod
}{
a, b
}
Return a
\%
b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
mod
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
mod
__}{
a
, b
}
Return a
\%
b.
\end{funcdesc}
...
...
@@ -57,7 +57,7 @@ Return a \% b.
Return o negated.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
neg
\_\
_
}{
o
}
\begin{funcdesc}
{
__
neg
_
_}{
o
}
Return o negated.
\end{funcdesc}
...
...
@@ -65,7 +65,7 @@ Return o negated.
Return o positive.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
pos
\_\
_
}{
o
}
\begin{funcdesc}
{
__
pos
_
_}{
o
}
Return o positive.
\end{funcdesc}
...
...
@@ -73,7 +73,7 @@ Return o positive.
Return the absolute value of o.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
abs
\_\
_
}{
o
}
\begin{funcdesc}
{
__
abs
_
_}{
o
}
Return the absolute value of o.
\end{funcdesc}
...
...
@@ -81,103 +81,103 @@ Return the absolute value of o.
Return the inverse of o.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
inv
\_\
_
}{
o
}
\begin{funcdesc}
{
__
inv
_
_}{
o
}
Return the inverse of o.
\end{funcdesc}
\begin{funcdesc}
{
lshift
}{
a
\
,
b
}
\begin{funcdesc}
{
lshift
}{
a, b
}
Return a shifted left by b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
lshift
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
lshift
__}{
a
, b
}
Return a shifted left by b.
\end{funcdesc}
\begin{funcdesc}
{
rshift
}{
a
\
,
b
}
\begin{funcdesc}
{
rshift
}{
a, b
}
Return a shifted right by b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
rshift
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
rshift
__}{
a
, b
}
Return a shifted right by b.
\end{funcdesc}
\begin{funcdesc}
{
and
\_
}{
a
\
,
b
}
\begin{funcdesc}
{
and
_}{
a
, b
}
Return the bitwise and of a and b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
and
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
and
__}{
a
, b
}
Return the bitwise and of a and b.
\end{funcdesc}
\begin{funcdesc}
{
or
\_
}{
a
\
,
b
}
\begin{funcdesc}
{
or
_}{
a
, b
}
Return the bitwise or of a and b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
or
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
or
__}{
a
, b
}
Return the bitwise or of a and b.
\end{funcdesc}
\begin{funcdesc}
{
concat
}{
a
\
,
b
}
\begin{funcdesc}
{
concat
}{
a, b
}
Return a + b for a and b sequences.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
concat
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
concat
__}{
a
, b
}
Return a + b for a and b sequences.
\end{funcdesc}
\begin{funcdesc}
{
repeat
}{
a
\
,
b
}
\begin{funcdesc}
{
repeat
}{
a, b
}
Return a * b where a is a sequence and b is an integer.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
repeat
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
repeat
__}{
a
, b
}
Return a * b where a is a sequence and b is an integer.
\end{funcdesc}
\begin{funcdesc}
{
getitem
}{
a
\
,
b
}
\begin{funcdesc}
{
getitem
}{
a, b
}
Return the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
getitem
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
getitem
__}{
a
, b
}
Return the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
setitem
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
setitem
}{
a
, b
, c
}
Set the value of a at index b to c.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
setitem
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
setitem
__}{
a, b
, c
}
Set the value of a at index b to c.
\end{funcdesc}
\begin{funcdesc}
{
delitem
}{
a
\
,
b
}
\begin{funcdesc}
{
delitem
}{
a, b
}
Set the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
delitem
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
delitem
__}{
a
, b
}
Set the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
getslice
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
getslice
}{
a
, b
, c
}
Return the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
getslice
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
getslice
__}{
a, b
, c
}
Return the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
setslice
}{
a
\,
b
\,
c
\
,
v
}
\begin{funcdesc}
{
setslice
}{
a
, b, c
, v
}
Set the slice of a from index b to index c-1 to the sequence v.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
setslice
\_\_
}{
a
\,
b
\,
c
\
,
v
}
\begin{funcdesc}
{
__
setslice
__}{
a, b, c
, v
}
Set the slice of a from index b to index c-1 to the sequence v.
\end{funcdesc}
\begin{funcdesc}
{
delslice
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
delslice
}{
a
, b
, c
}
Delete the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
delslice
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
delslice
__}{
a, b
, c
}
Delete the slice of a from index b to index c-1.
\end{funcdesc}
...
...
Doc/liboperator.tex
Dosyayı görüntüle @
98b032a7
...
...
@@ -7,49 +7,49 @@ The \code{operator} module exports a set of functions implemented in C
corresponding to the intrinsic operators of Python. For example,
{}
\code
{
operator.add(x, y)
}
is equivalent to the expression x+y. The
function names are those used for special class methods; variants without
leading and trailing
'
\_\_
'
are also provided for convenience.
leading and trailing
\samp
{__}
are also provided for convenience.
The
\code
{
operator
}
module defines the following functions:
\renewcommand
{
\indexsubitem
}{
(in module operator)
}
\begin{funcdesc}
{
add
}{
a
\
,
b
}
\begin{funcdesc}
{
add
}{
a, b
}
Return a + b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
add
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
add
__}{
a
, b
}
Return a + b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
sub
}{
a
\
,
b
}
\begin{funcdesc}
{
sub
}{
a, b
}
Return a - b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
sub
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
sub
__}{
a
, b
}
Return a - b.
\end{funcdesc}
\begin{funcdesc}
{
mul
}{
a
\
,
b
}
\begin{funcdesc}
{
mul
}{
a, b
}
Return a * b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
mul
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
mul
__}{
a
, b
}
Return a * b, for a and b numbers.
\end{funcdesc}
\begin{funcdesc}
{
div
}{
a
\
,
b
}
\begin{funcdesc}
{
div
}{
a, b
}
Return a / b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
div
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
div
__}{
a
, b
}
Return a / b.
\end{funcdesc}
\begin{funcdesc}
{
mod
}{
a
\
,
b
}
\begin{funcdesc}
{
mod
}{
a, b
}
Return a
\%
b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
mod
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
mod
__}{
a
, b
}
Return a
\%
b.
\end{funcdesc}
...
...
@@ -57,7 +57,7 @@ Return a \% b.
Return o negated.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
neg
\_\
_
}{
o
}
\begin{funcdesc}
{
__
neg
_
_}{
o
}
Return o negated.
\end{funcdesc}
...
...
@@ -65,7 +65,7 @@ Return o negated.
Return o positive.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
pos
\_\
_
}{
o
}
\begin{funcdesc}
{
__
pos
_
_}{
o
}
Return o positive.
\end{funcdesc}
...
...
@@ -73,7 +73,7 @@ Return o positive.
Return the absolute value of o.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
abs
\_\
_
}{
o
}
\begin{funcdesc}
{
__
abs
_
_}{
o
}
Return the absolute value of o.
\end{funcdesc}
...
...
@@ -81,103 +81,103 @@ Return the absolute value of o.
Return the inverse of o.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
inv
\_\
_
}{
o
}
\begin{funcdesc}
{
__
inv
_
_}{
o
}
Return the inverse of o.
\end{funcdesc}
\begin{funcdesc}
{
lshift
}{
a
\
,
b
}
\begin{funcdesc}
{
lshift
}{
a, b
}
Return a shifted left by b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
lshift
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
lshift
__}{
a
, b
}
Return a shifted left by b.
\end{funcdesc}
\begin{funcdesc}
{
rshift
}{
a
\
,
b
}
\begin{funcdesc}
{
rshift
}{
a, b
}
Return a shifted right by b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
rshift
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
rshift
__}{
a
, b
}
Return a shifted right by b.
\end{funcdesc}
\begin{funcdesc}
{
and
\_
}{
a
\
,
b
}
\begin{funcdesc}
{
and
_}{
a
, b
}
Return the bitwise and of a and b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
and
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
and
__}{
a
, b
}
Return the bitwise and of a and b.
\end{funcdesc}
\begin{funcdesc}
{
or
\_
}{
a
\
,
b
}
\begin{funcdesc}
{
or
_}{
a
, b
}
Return the bitwise or of a and b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
or
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
or
__}{
a
, b
}
Return the bitwise or of a and b.
\end{funcdesc}
\begin{funcdesc}
{
concat
}{
a
\
,
b
}
\begin{funcdesc}
{
concat
}{
a, b
}
Return a + b for a and b sequences.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
concat
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
concat
__}{
a
, b
}
Return a + b for a and b sequences.
\end{funcdesc}
\begin{funcdesc}
{
repeat
}{
a
\
,
b
}
\begin{funcdesc}
{
repeat
}{
a, b
}
Return a * b where a is a sequence and b is an integer.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
repeat
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
repeat
__}{
a
, b
}
Return a * b where a is a sequence and b is an integer.
\end{funcdesc}
\begin{funcdesc}
{
getitem
}{
a
\
,
b
}
\begin{funcdesc}
{
getitem
}{
a, b
}
Return the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
getitem
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
getitem
__}{
a
, b
}
Return the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
setitem
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
setitem
}{
a
, b
, c
}
Set the value of a at index b to c.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
setitem
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
setitem
__}{
a, b
, c
}
Set the value of a at index b to c.
\end{funcdesc}
\begin{funcdesc}
{
delitem
}{
a
\
,
b
}
\begin{funcdesc}
{
delitem
}{
a, b
}
Set the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
delitem
\_\_
}{
a
\
,
b
}
\begin{funcdesc}
{
__
delitem
__}{
a
, b
}
Set the value of a at index b.
\end{funcdesc}
\begin{funcdesc}
{
getslice
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
getslice
}{
a
, b
, c
}
Return the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
getslice
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
getslice
__}{
a, b
, c
}
Return the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
setslice
}{
a
\,
b
\,
c
\
,
v
}
\begin{funcdesc}
{
setslice
}{
a
, b, c
, v
}
Set the slice of a from index b to index c-1 to the sequence v.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
setslice
\_\_
}{
a
\,
b
\,
c
\
,
v
}
\begin{funcdesc}
{
__
setslice
__}{
a, b, c
, v
}
Set the slice of a from index b to index c-1 to the sequence v.
\end{funcdesc}
\begin{funcdesc}
{
delslice
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
delslice
}{
a
, b
, c
}
Delete the slice of a from index b to index c-1.
\end{funcdesc}
\begin{funcdesc}
{
\_\_
delslice
\_\_
}{
a
\,
b
\
,
c
}
\begin{funcdesc}
{
__
delslice
__}{
a, b
, c
}
Delete the slice of a from index b to index c-1.
\end{funcdesc}
...
...
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