Trees | Index | Help |
|
---|
Module pickle :: Class Pickler |
|
Serializer
Method Summary | |
---|---|
This takes a file-like object for writing a pickle data stream. | |
Clears the pickler's "memo". | |
Write a pickled representation of obj to the open file. | |
get(self,
i,
pack)
| |
Store an object in the memo. | |
persistent_id(self,
obj)
| |
put(self,
i,
pack)
| |
save(self,
obj)
| |
save_bool(self,
obj)
| |
save_dict(self,
obj)
| |
save_empty_tuple(self,
obj)
| |
save_float(self,
obj,
pack)
| |
save_global(self,
obj,
name,
pack)
| |
save_inst(self,
obj)
| |
save_int(self,
obj,
pack)
| |
save_list(self,
obj)
| |
save_long(self,
obj,
pack)
| |
save_none(self,
obj)
| |
save_pers(self,
pid)
| |
save_reduce(self,
func,
args,
state,
listitems,
dictitems,
obj)
| |
save_string(self,
obj,
pack)
| |
save_tuple(self,
obj)
| |
save_unicode(self,
obj,
pack)
| |
_batch_appends(self,
items)
| |
_batch_setitems(self,
items)
|
Class Variable Summary | |
---|---|
dict |
dispatch = {<type 'NoneType'>: <function save_none at 0x...
|
int |
_BATCHSIZE = 1000 |
Method Details |
---|
__init__(self,
file,
protocol=None,
bin=None)
|
clear_memo(self)Clears the pickler's "memo". The memo is the data structure that remembers which objects the pickler has already seen, so that shared or recursive objects are pickled by reference and not by value. This method is useful when re-using picklers. |
dump(self, obj)Write a pickled representation of obj to the open file. |
memoize(self, obj)Store an object in the memo. |
Class Variable Details |
---|
_BATCHSIZE
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat May 26 01:17:05 2007 | http://epydoc.sf.net |