Added some comments.
This commit is contained in:
parent
e46b73f5b3
commit
bb38e306ae
|
@ -192,6 +192,7 @@ class Pickler:
|
||||||
self.write(self.put(memo_len))
|
self.write(self.put(memo_len))
|
||||||
self.memo[d] = memo_len, obj
|
self.memo[d] = memo_len, obj
|
||||||
|
|
||||||
|
# Return a PUT (BINPUT, LONG_BINPUT) opcode string, with argument i.
|
||||||
def put(self, i):
|
def put(self, i):
|
||||||
if self.bin:
|
if self.bin:
|
||||||
s = mdumps(i)[1:]
|
s = mdumps(i)[1:]
|
||||||
|
@ -202,6 +203,7 @@ class Pickler:
|
||||||
|
|
||||||
return PUT + `i` + '\n'
|
return PUT + `i` + '\n'
|
||||||
|
|
||||||
|
# Return a GET (BINGET, LONG_BINGET) opcode string, with argument i.
|
||||||
def get(self, i):
|
def get(self, i):
|
||||||
if self.bin:
|
if self.bin:
|
||||||
s = mdumps(i)[1:]
|
s = mdumps(i)[1:]
|
||||||
|
|
Loading…
Reference in New Issue