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
7f732959
Kaydet (Commit)
7f732959
authored
Şub 14, 2008
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Note the the sort arguments are required to be keywords.
üst
71161866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
stdtypes.rst
Doc/library/stdtypes.rst
+4
-4
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
7f732959
...
@@ -1266,7 +1266,7 @@ Note that while lists allow their items to be of any type, bytearray object
...
@@ -1266,7 +1266,7 @@ Note that while lists allow their items to be of any type, bytearray object
| ``s.reverse()`` | reverses the items of *s* in | \(6) |
| ``s.reverse()`` | reverses the items of *s* in | \(6) |
| | place | |
| | place | |
+------------------------------+--------------------------------+---------------------+
+------------------------------+--------------------------------+---------------------+
| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7)
|
| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7)
, (8)
|
+------------------------------+--------------------------------+---------------------+
+------------------------------+--------------------------------+---------------------+
.. index::
.. index::
...
@@ -1315,10 +1315,8 @@ Notes:
...
@@ -1315,10 +1315,8 @@ Notes:
sequence.
sequence.
(7)
(7)
:meth:`sort` is not supported by :class:`bytearray` objects.
The :meth:`sort` method takes optional arguments for controlling the
The :meth:`sort` method takes optional arguments for controlling the
comparisons.
comparisons.
Each must be specified as a keyword argument.
*key* specifies a function of one argument that is used to extract a comparison
*key* specifies a function of one argument that is used to extract a comparison
key from each list element: ``key=str.lower``. The default value is ``None``.
key from each list element: ``key=str.lower``. The default value is ``None``.
...
@@ -1336,6 +1334,8 @@ Notes:
...
@@ -1336,6 +1334,8 @@ Notes:
makes the list appear empty for the duration, and raises :exc:`ValueError` if it
makes the list appear empty for the duration, and raises :exc:`ValueError` if it
can detect that the list has been mutated during a sort.
can detect that the list has been mutated during a sort.
(8)
:meth:`sort` is not supported by :class:`bytearray` objects.
.. _bytes-methods:
.. _bytes-methods:
...
...
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