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
d0f11dec
Kaydet (Commit)
d0f11dec
authored
Agu 21, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added documentation for PyObject_DelItem and PySequence_Del{Item,Slice}.
üst
360a9346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
extref.tex
Doc/extref.tex
+16
-0
No files found.
Doc/extref.tex
Dosyayı görüntüle @
d0f11dec
...
@@ -202,6 +202,12 @@ From the viewpoint of of C access to Python services, we have:
...
@@ -202,6 +202,12 @@ From the viewpoint of of C access to Python services, we have:
of the Python statement:
\code
{
o[key]=v
}
.
of the Python statement:
\code
{
o[key]=v
}
.
\code
{
int PyObject
_
DelItem(PyObject *o, PyObject *key, PyObject *v)
}
\\
Delete the mapping for
\code
{
key
}
from
\code
{
*o
}
. Returns -1
on failure.
This is the equivalent of the Python statement: del o[key].
\subsubsection
{
Number Protocol
}
\subsubsection
{
Number Protocol
}
\code
{
int PyNumber
_
Check(PyObject *o)
}
\\
\code
{
int PyNumber
_
Check(PyObject *o)
}
\\
...
@@ -361,11 +367,21 @@ From the viewpoint of of C access to Python services, we have:
...
@@ -361,11 +367,21 @@ From the viewpoint of of C access to Python services, we have:
Returns -1 on failure. This is the equivalent of the Python
Returns -1 on failure. This is the equivalent of the Python
statement,
\code
{
o[i]=v
}
.
statement,
\code
{
o[i]=v
}
.
\code
{
int PySequence
_
DelItem(PyObject *o, int i)
}
\\
Delete the
\code
{
i
}
th element of object
\code
{
v
}
. Returns
-1 on failure. This is the equivalent of the Python
statement:
\code
{
del o[i]
}
.
\code
{
int PySequence
_
SetSlice(PyObject *o, int i1, int i2, PyObject *v)
}
\\
\code
{
int PySequence
_
SetSlice(PyObject *o, int i1, int i2, PyObject *v)
}
\\
Assign the sequence object
\code
{
v
}
to the slice in sequence
Assign the sequence object
\code
{
v
}
to the slice in sequence
object
\code
{
o
}
from
\code
{
i1
}
to
\code
{
i2
}
. This is the equivalent of the Python
object
\code
{
o
}
from
\code
{
i1
}
to
\code
{
i2
}
. This is the equivalent of the Python
statement,
\code
{
o[i1:i2]=v
}
.
statement,
\code
{
o[i1:i2]=v
}
.
\code
{
int PySequence
_
DelSlice(PyObject *o, int i1, int i2)
}
\\
Delete the slice in sequence object,
\code
{
o
}
, from
\code
{
i1
}
to
\code
{
i2
}
.
Returns -1 on failure. This is the equivalent of the Python
statement:
\code
{
del o[i1:i2]
}
.
\code
{
PyObject *PySequence
_
Tuple(PyObject *o)
}
\\
\code
{
PyObject *PySequence
_
Tuple(PyObject *o)
}
\\
Returns the
\code
{
o
}
as a tuple on success, and NULL on failure.
Returns the
\code
{
o
}
as a tuple on success, and NULL on failure.
This is equivalent to the Python expression:
\code
{
tuple(o)
}
.
This is equivalent to the Python expression:
\code
{
tuple(o)
}
.
...
...
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