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
45a583b6
Kaydet (Commit)
45a583b6
authored
Eki 25, 2008
tarafından
Alexandre Vassalotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a grammar mistake in a comment.
üst
1a6e0d08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dbpickle.py
Doc/includes/dbpickle.py
+3
-3
No files found.
Doc/includes/dbpickle.py
Dosyayı görüntüle @
45a583b6
...
...
@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
def
persistent_id
(
self
,
obj
):
# Instead of pickling MemoRecord as a regular class instance, we emit a
# persistent ID
instead
.
# persistent ID.
if
isinstance
(
obj
,
MemoRecord
):
# Here, our persistent ID is simply a tuple containing a tag and a
# key which refers to a specific record in the database.
# Here, our persistent ID is simply a tuple
,
containing a tag and a
# key
,
which refers to a specific record in the database.
return
(
"MemoRecord"
,
obj
.
key
)
else
:
# If obj does not have a persistent ID, return None. This means obj
...
...
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