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
e3e1ecac
Kaydet (Commit)
e3e1ecac
authored
Tem 26, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #997166] Fix example
üst
fdccf1ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+4
-5
No files found.
Doc/whatsnew/whatsnew24.tex
Dosyayı görüntüle @
e3e1ecac
...
@@ -591,10 +591,9 @@ expressions. The differences are:
...
@@ -591,10 +591,9 @@ expressions. The differences are:
>>> [10+i for i in sorted(L)] # usable in a list comprehension
>>> [10+i for i in sorted(L)] # usable in a list comprehension
[11, 12, 13, 14, 15, 16, 17, 18, 19]
[11, 12, 13, 14, 15, 16, 17, 18, 19]
>>> L # original is left unchanged
>>> L # original is left unchanged
[9,7,8,3,2,4,1,6,5]
[9,7,8,3,2,4,1,6,5]
>>> sorted('Monty Python') # any iterable may be an input
>>> sorted('Monte Python') # any iterable may be an input
[' ', 'M', 'P', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y', 'y']
[' ', 'M', 'P', 'e', 'h', 'n', 'n', 'o', 'o', 't', 't', 'y']
>>> # List the contents of a dict sorted by key values
>>> # List the contents of a dict sorted by key values
>>> colormap = dict(red=1, blue=2, green=3, black=4, yellow=5)
>>> colormap = dict(red=1, blue=2, green=3, black=4, yellow=5)
...
@@ -1049,6 +1048,6 @@ changes to your code:
...
@@ -1049,6 +1048,6 @@ changes to your code:
The author would like to thank the following people for offering
The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this
suggestions, corrections and assistance with various drafts of this
article: Raymond Hettinger.
article:
Michael Dyck,
Raymond Hettinger.
\end{document}
\end{document}
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