diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-27 21:25:41 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-27 21:25:41 (GMT) |
commit | bb38e306aeeb10cc0d4f9f532777c773f63ad045 (patch) | |
tree | 1784fb076d1c99a3869b2b4435fc2819f51d5934 | |
parent | e46b73f5b3822af74d994a1bbfc13843d93c90eb (diff) | |
download | cpython-bb38e306aeeb10cc0d4f9f532777c773f63ad045.zip cpython-bb38e306aeeb10cc0d4f9f532777c773f63ad045.tar.gz cpython-bb38e306aeeb10cc0d4f9f532777c773f63ad045.tar.bz2 |
Added some comments.
-rw-r--r-- | Lib/pickle.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 4d7a5be..d3d1dcf 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -192,6 +192,7 @@ class Pickler: self.write(self.put(memo_len)) self.memo[d] = memo_len, obj + # Return a PUT (BINPUT, LONG_BINPUT) opcode string, with argument i. def put(self, i): if self.bin: s = mdumps(i)[1:] @@ -202,6 +203,7 @@ class Pickler: return PUT + `i` + '\n' + # Return a GET (BINGET, LONG_BINGET) opcode string, with argument i. def get(self, i): if self.bin: s = mdumps(i)[1:] |