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
dbbc07c2
Kaydet (Commit)
dbbc07c2
authored
Mar 13, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
the default is sys.maxsize not sys.maxint (closes #23645)
üst
f249671d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
datamodel.rst
Doc/reference/datamodel.rst
+9
-9
No files found.
Doc/reference/datamodel.rst
Dosyayı görüntüle @
dbbc07c2
...
@@ -1993,15 +1993,15 @@ objects. Immutable sequences methods should at most only define
...
@@ -1993,15 +1993,15 @@ objects. Immutable sequences methods should at most only define
:meth:`__getslice__`. Therefore, you have to override it in derived
:meth:`__getslice__`. Therefore, you have to override it in derived
classes when implementing slicing.)
classes when implementing slicing.)
Called to implement evaluation of ``self[i:j]``. The returned object should
be
Called to implement evaluation of ``self[i:j]``. The returned object should
of the same type as *self*. Note that missing *i* or *j* in the slice
be
of the same type as *self*. Note that missing *i* or *j* in the slice
expression are replaced by zero or
``sys.maxint``, respectively. If negative
expression are replaced by zero or
:attr:`sys.maxsize`, respectively. If
indexes are used in the slice, the length of the sequence is added to that
negative indexes are used in the slice, the length of the sequence is added
index. If the instance does not implement the :meth:`__len__` method, an
to that index. If the instance does not implement the :meth:`__len__` method,
:exc:`AttributeError` is raised. No guarantee is made that indexes adjusted thi
s
an :exc:`AttributeError` is raised. No guarantee is made that indexe
s
way are not still negative. Indexes which are greater than the length of
the
adjusted this way are not still negative. Indexes which are greater than
the
sequence are not modified. If no :meth:`__getslice__` is found, a slice object
length of the sequence are not modified. If no :meth:`__getslice__` is found,
is created instead, and passed to :meth:`__getitem__` instead.
a slice object
is created instead, and passed to :meth:`__getitem__` instead.
.. method:: object.__setslice__(self, i, j, sequence)
.. method:: object.__setslice__(self, i, j, sequence)
...
...
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