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
3a5971c2
Kaydet (Commit)
3a5971c2
authored
Haz 04, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5967: note that the C slicing APIs do not support negative indices.
üst
46121e79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
list.rst
Doc/c-api/list.rst
+6
-4
No files found.
Doc/c-api/list.rst
Dosyayı görüntüle @
3a5971c2
...
@@ -149,9 +149,10 @@ List Objects
...
@@ -149,9 +149,10 @@ List Objects
.. cfunction:: PyObject* PyList_GetSlice(PyObject *list, Py_ssize_t low, Py_ssize_t high)
.. cfunction:: PyObject* PyList_GetSlice(PyObject *list, Py_ssize_t low, Py_ssize_t high)
Return a list of the objects in *list* containing the objects *between*
Return a list of the objects in *list* containing the objects *between* *low*
*low* and *high*. Return *NULL* and set an exception if unsuccessful.
and *high*. Return *NULL* and set an exception if unsuccessful. Analogous
Analogous to ``list[low:high]``.
to ``list[low:high]``. Negative indices, as when slicing from Python, are not
supported.
.. versionchanged:: 2.5
.. versionchanged:: 2.5
This function used an :ctype:`int` for *low* and *high*. This might
This function used an :ctype:`int` for *low* and *high*. This might
...
@@ -163,7 +164,8 @@ List Objects
...
@@ -163,7 +164,8 @@ List Objects
Set the slice of *list* between *low* and *high* to the contents of
Set the slice of *list* between *low* and *high* to the contents of
*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may
*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may
be *NULL*, indicating the assignment of an empty list (slice deletion).
be *NULL*, indicating the assignment of an empty list (slice deletion).
Return ``0`` on success, ``-1`` on failure.
Return ``0`` on success, ``-1`` on failure. Negative indices, as when
slicing from Python, are not supported.
.. versionchanged:: 2.5
.. versionchanged:: 2.5
This function used an :ctype:`int` for *low* and *high*. This might
This function used an :ctype:`int` for *low* and *high*. This might
...
...
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