Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6e0d0 commit 45a583bCopy full SHA for 45a583b
1 file changed
Doc/includes/dbpickle.py
@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
12
13
def persistent_id(self, obj):
14
# Instead of pickling MemoRecord as a regular class instance, we emit a
15
- # persistent ID instead.
+ # persistent ID.
16
if isinstance(obj, MemoRecord):
17
- # Here, our persistent ID is simply a tuple containing a tag and a
18
- # 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.
19
return ("MemoRecord", obj.key)
20
else:
21
# If obj does not have a persistent ID, return None. This means obj
0 commit comments