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
256cbd74
Kaydet (Commit)
256cbd74
authored
Şub 16, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
minute comment changes
üst
a8db1df6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pickle.py
Lib/pickle.py
+3
-3
shelve.py
Lib/shelve.py
+1
-1
No files found.
Lib/pickle.py
Dosyayı görüntüle @
256cbd74
...
...
@@ -84,7 +84,7 @@ that suitable conversions can be made by the class's __setstate__ method.
The interface is as follows:
To pickle an object x onto a file f
.
open for writing:
To pickle an object x onto a file f
,
open for writing:
p = pickle.Pickler(f)
p.dump(x)
...
...
@@ -106,7 +106,7 @@ The following types can be pickled:
- None
- integers, long integers, floating point numbers
- strings
- tuples, lists and dictionaries containing picklable objects
- tuples, lists and dictionaries containing
only
picklable objects
- class instances whose __dict__ or __setstate__() is picklable
Attempts to pickle unpicklable objects will raise an exception
...
...
@@ -114,7 +114,7 @@ after having written an unspecified number of bytes to the file argument.
It is possible to make multiple calls to Pickler.dump() or to
Unpickler.load(), as long as there is a one-to-one correspondence
betwee pickler and Unpickler objects and between dump and load calls
betwee
n
pickler and Unpickler objects and between dump and load calls
for any pair of corresponding Pickler and Unpicklers. WARNING: this
is intended for pickleing multiple objects without intervening modifications
to the objects or their parts. If you modify an object and then pickle
...
...
Lib/shelve.py
Dosyayı görüntüle @
256cbd74
...
...
@@ -11,7 +11,7 @@ To summarize the interface (key is a string, data is an arbitrary
object):
import shelve
d = shelve.open(filename)
# open, with (g)dbm filename
d = shelve.open(filename)
# open, with (g)dbm filename -- no suffix
d[key] = data # store data at key (overwrites old data if
# using an existing key)
...
...
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