Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.pickletester Namespace Reference

Classes

class  UnseekableIO
class  ExtensionSaver
class  C
class  D
class  E
class  myint
class  initarg
class  metaclass
class  use_metaclass

Functions

def opcode_in_pickle
def count_opcode

Variables

tuple protocols = range(pickle.HIGHEST_PROTOCOL + 1)

Function Documentation

def test.pickletester.count_opcode (   code,
  pickle 
)

Definition at line 26 of file pickletester.py.

00026 
00027 def count_opcode(code, pickle):
00028     n = 0
00029     for op, dummy, dummy in pickletools.genops(pickle):
00030         if op.code == code.decode("latin-1"):
00031             n += 1
00032     return n
00033 

Here is the call graph for this function:

def test.pickletester.opcode_in_pickle (   code,
  pickle 
)

Definition at line 19 of file pickletester.py.

00019 
00020 def opcode_in_pickle(code, pickle):
00021     for op, dummy, dummy in pickletools.genops(pickle):
00022         if op.code == code.decode("latin-1"):
00023             return True
00024     return False
00025 
# Return the number of times opcode code appears in pickle.

Here is the call graph for this function:


Variable Documentation

Definition at line 15 of file pickletester.py.