Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_pickle.CPersPicklerTests Class Reference
Inheritance diagram for test.test_pickle.CPersPicklerTests:
Inheritance graph
[legend]
Collaboration diagram for test.test_pickle.CPersPicklerTests:
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 87 of file test_pickle.py.


Member Function Documentation

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

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 
) [inherited]

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

test.test_pickle.CPersPicklerTests.pickler = _pickle.Pickler [static]

Reimplemented from test.test_pickle.PyPersPicklerTests.

Definition at line 88 of file test_pickle.py.

test.test_pickle.CPersPicklerTests.unpickler = _pickle.Unpickler [static]

Reimplemented from test.test_pickle.PyPersPicklerTests.

Definition at line 89 of file test_pickle.py.


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