Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.pickletester.ExtensionSaver Class Reference

List of all members.

Public Member Functions

def __init__
def restore

Public Attributes


Detailed Description

Definition at line 58 of file

Constructor & Destructor Documentation

def test.pickletester.ExtensionSaver.__init__ (   self,

Definition at line 61 of file

00062     def __init__(self, code):
00063         self.code = code
00064         if code in copyreg._inverted_registry:
00065             self.pair = copyreg._inverted_registry[code]
00066             copyreg.remove_extension(self.pair[0], self.pair[1], code)
00067         else:
00068             self.pair = None

Here is the caller graph for this function:

Member Function Documentation

Definition at line 70 of file

00071     def restore(self):
00072         code = self.code
00073         curpair = copyreg._inverted_registry.get(code)
00074         if curpair is not None:
00075             copyreg.remove_extension(curpair[0], curpair[1], code)
00076         pair = self.pair
00077         if pair is not None:
00078             copyreg.add_extension(pair[0], pair[1], code)

Here is the call graph for this function:

Member Data Documentation

Definition at line 62 of file

Definition at line 64 of file

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