Added some comments.

This commit is contained in:
Tim Peters 2003-01-27 21:25:41 +00:00
parent e46b73f5b3
commit bb38e306ae
1 changed files with 2 additions and 0 deletions

View File

@ -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:]