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
340383ce
Kaydet (Commit)
340383ce
authored
Tem 22, 2008
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tuples now have both count() and index().
üst
9973ee86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
2.6.rst
Doc/whatsnew/2.6.rst
+4
-2
No files found.
Doc/whatsnew/2.6.rst
Dosyayı görüntüle @
340383ce
...
@@ -1441,13 +1441,15 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
...
@@ -1441,13 +1441,15 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
it will be returned if *iterator* has been exhausted; otherwise,
it will be returned if *iterator* has been exhausted; otherwise,
the :exc:`StopIteration` exception will be raised. (:issue:`2719`)
the :exc:`StopIteration` exception will be raised. (:issue:`2719`)
* Tuples now have
an :meth:`index` method matching the list type's
* Tuples now have
:meth:`index` and :meth:`count` methods matching the
:meth:`index` method
::
list type's :meth:`index` and :meth:`count` methods
::
>>> t = (0,1,2,3,4)
>>> t = (0,1,2,3,4)
>>> t.index(3)
>>> t.index(3)
3
3
(Contributed by Raymond Hettinger)
* The built-in types now have improved support for extended slicing syntax,
* The built-in types now have improved support for extended slicing syntax,
where various combinations of ``(start, stop, step)`` are supplied.
where various combinations of ``(start, stop, step)`` are supplied.
Previously, the support was partial and certain corner cases wouldn't work.
Previously, the support was partial and certain corner cases wouldn't work.
...
...
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