]> granicus.if.org Git - python/commitdiff
Added some comments.
authorTim Peters <tim.peters@gmail.com>
Mon, 27 Jan 2003 21:25:41 +0000 (21:25 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 27 Jan 2003 21:25:41 +0000 (21:25 +0000)
Lib/pickle.py

index 4d7a5bec2b01b23df3f1f40192bd535a8f38bed7..d3d1dcfee34e71aa09a6b178273a606e98c44c1e 100644 (file)
@@ -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:]