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
631507d1
Kaydet (Commit)
631507d1
authored
Şub 07, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #11141: Fix the shelve documentation to use a list, not a range object.
Patch by SilentGhost.
üst
da397903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ACKS.txt
Doc/ACKS.txt
+1
-0
shelve.rst
Doc/library/shelve.rst
+2
-2
No files found.
Doc/ACKS.txt
Dosyayı görüntüle @
631507d1
...
...
@@ -182,6 +182,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Joakim Sernbrant
* Justin Sheehy
* Charlie Shepherd
* SilentGhost
* Michael Simcich
* Ionel Simionescu
* Michael Sloan
...
...
Doc/library/shelve.rst
Dosyayı görüntüle @
631507d1
...
...
@@ -169,8 +169,8 @@ object)::
klist = list(d.keys()) # a list of all existing keys (slow!)
# as d was opened WITHOUT writeback=True, beware:
d['xx'] =
range(4)
# this works as expected, but...
d['xx'].append(
5) # *this doesn't!* -- d['xx'] is STILL range(4)
!
d['xx'] =
[0, 1, 2]
# this works as expected, but...
d['xx'].append(
3) # *this doesn't!* -- d['xx'] is STILL [0, 1, 2]
!
# having opened d without writeback=True, you need to code carefully:
temp = d['xx'] # extracts the copy
...
...
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