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
31575ce8
Kaydet (Commit)
31575ce8
authored
Eyl 21, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Note that __getitem__() may receive a slice object as the index;
reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
üst
02997491
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ref3.tex
Doc/ref/ref3.tex
+3
-2
No files found.
Doc/ref/ref3.tex
Dosyayı görüntüle @
31575ce8
...
...
@@ -1095,8 +1095,9 @@ returns zero is considered to be false in a Boolean context.
\begin{methoddesc}
[mapping object]
{__
getitem
__}{
self, key
}
Called to implement evaluation of
\code
{
\var
{
self
}
[
\var
{
key
}
]
}
.
For a sequence types, the accepted keys should be integers. Note that
the special interpretation of negative indices (if the class wishes to
For sequence types, the accepted keys should be integers and slice
objects.
\obindex
{
slice
}
Note that
the special interpretation of negative indexes (if the class wishes to
emulate a sequence type) is up to the
\method
{__
getitem
__
()
}
method.
If
\var
{
key
}
is of an inappropriate type,
\exception
{
TypeError
}
may be
raised; if of a value outside the set of indexes for the 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