Back to index

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


Member Function Documentation

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

Definition at line 27 of file test_pickle.py.

00027 
00028     def dumps(self, arg, proto=None):
00029         f = io.BytesIO()
00030         p = self.pickler(f, proto)
00031         p.dump(arg)
00032         f.seek(0)
00033         return bytes(f.read())

Here is the caller graph for this function:

def test.test_pickle.PyPicklerTests.loads (   self,
  buf,
  kwds 
) [inherited]

Definition at line 34 of file test_pickle.py.

00034 
00035     def loads(self, buf, **kwds):
00036         f = io.BytesIO(buf)
00037         u = self.unpickler(f, **kwds)
00038         return u.load()
00039 

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from test.test_pickle.PyPicklerTests.

Definition at line 96 of file test_pickle.py.

Reimplemented from test.test_pickle.PyPicklerTests.

Definition at line 97 of file test_pickle.py.


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