Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_pickle.PyPersPicklerTests Class Reference
Inheritance diagram for test.test_pickle.PyPersPicklerTests:
Inheritance graph
[legend]
Collaboration diagram for test.test_pickle.PyPersPicklerTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def dumps
def loads

Static Public Attributes

 pickler = pickle._Pickler
 unpickler = pickle._Unpickler

Detailed Description

Definition at line 52 of file test_pickle.py.


Member Function Documentation

def test.test_pickle.PyPersPicklerTests.dumps (   self,
  arg,
  proto = None 
)

Definition at line 57 of file test_pickle.py.

00057 
00058     def dumps(self, arg, proto=None):
00059         class PersPickler(self.pickler):
00060             def persistent_id(subself, obj):
00061                 return self.persistent_id(obj)
00062         f = io.BytesIO()
00063         p = PersPickler(f, proto)
00064         p.dump(arg)
00065         f.seek(0)
00066         return f.read()

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_pickle.PyPersPicklerTests.loads (   self,
  buf,
  kwds 
)

Definition at line 67 of file test_pickle.py.

00067 
00068     def loads(self, buf, **kwds):
00069         class PersUnpickler(self.unpickler):
00070             def persistent_load(subself, obj):
00071                 return self.persistent_load(obj)
00072         f = io.BytesIO(buf)
00073         u = PersUnpickler(f, **kwds)
00074         return u.load()
00075 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in test.test_pickle.CPersPicklerTests.

Definition at line 54 of file test_pickle.py.

Reimplemented in test.test_pickle.CPersPicklerTests.

Definition at line 55 of file test_pickle.py.


The documentation for this class was generated from the following file: