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
85602268
Kaydet (Commit)
85602268
authored
Şub 03, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The default shelve pickle protocol should have been 3.
üst
f6e18066
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
shelve.rst
Doc/library/shelve.rst
+1
-1
shelve.py
Lib/shelve.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/shelve.rst
Dosyayı görüntüle @
85602268
...
...
@@ -23,7 +23,7 @@ lots of shared sub-objects. The keys are ordinary strings.
database file is opened for reading and writing. The optional *flag* parameter
has the same interpretation as the *flag* parameter of :func:`dbm.open`.
By default, version
2
pickles are used to serialize values. The version of the
By default, version
3
pickles are used to serialize values. The version of the
pickle protocol can be specified with the *protocol* parameter.
By default, mutations to persistent-dictionary mutable entries are not
...
...
Lib/shelve.py
Dosyayı görüntüle @
85602268
...
...
@@ -84,7 +84,7 @@ class Shelf(collections.MutableMapping):
keyencoding
=
"utf-8"
):
self
.
dict
=
dict
if
protocol
is
None
:
protocol
=
2
protocol
=
3
self
.
_protocol
=
protocol
self
.
writeback
=
writeback
self
.
cache
=
{}
...
...
Misc/NEWS
Dosyayı görüntüle @
85602268
...
...
@@ -157,6 +157,8 @@ Library
- Issue #1581476: Always use the Tcl global namespace when calling into Tcl.
- The shelve module now defaults to pickle protocol 3.
- Fix a bug in the trace module where a bytes object from co_lnotab had its
items being passed through ord().
...
...
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