Commit da840167 authored by chris's avatar chris

*** empty log message ***

parent 80c75a85
# $Id: pickle.py,v 1.5 1997/02/10 22:08:32 cici Exp $
# $Id: pickle.py,v 1.6 1997/02/12 17:06:45 chris Exp $
#
# Copyright
#
......@@ -681,6 +681,18 @@ class Unpickler:
self.stack[k:] = [tuple(self.stack[k+1:])]
dispatch[TUPLE] = load_tuple
def load_empty_tuple(self):
self.stack.append(())
dispatch[EMPTY_TUPLE] = load_empty_tuple
def load_empty_list(self):
self.stack.append([])
dispatch[EMPTY_LIST] = load_empty_list
def load_empty_dictionary(self):
self.stack.append({})
dispatch[EMPTY_DICT] = load_empty_dictionary
def load_list(self):
k = self.marker()
self.stack[k:] = [self.stack[k+1:]]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment