Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
pickletools.OpcodeInfo Class Reference

Descriptors for pickle opcodes. More...

Inheritance diagram for pickletools.OpcodeInfo:
Inheritance graph
Collaboration diagram for pickletools.OpcodeInfo:
Collaboration graph

List of all members.

Public Member Functions

def __init__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Private Attributes

tuple __slots__

Detailed Description

Descriptors for pickle opcodes.

Definition at line 825 of file

Constructor & Destructor Documentation

def pickletools.OpcodeInfo.__init__ (   self,

Definition at line 857 of file

00858                  stack_before, stack_after, proto, doc):
00859         assert isinstance(name, str)
00860 = name
00862         assert isinstance(code, str)
00863         assert len(code) == 1
00864         self.code = code
00866         assert arg is None or isinstance(arg, ArgumentDescriptor)
00867         self.arg = arg
00869         assert isinstance(stack_before, list)
00870         for x in stack_before:
00871             assert isinstance(x, StackObject)
00872         self.stack_before = stack_before
00874         assert isinstance(stack_after, list)
00875         for x in stack_after:
00876             assert isinstance(x, StackObject)
00877         self.stack_after = stack_after
00879         assert isinstance(proto, int) and 0 <= proto <= 3
00880         self.proto = proto
00882         assert isinstance(doc, str)
00883         self.doc = doc

Here is the caller graph for this function:

Member Data Documentation

tuple pickletools.OpcodeInfo.__slots__ [static, private]
Initial value:
        # symbolic name of opcode; a string

        # the code used in a bytestream to represent the opcode; a
        # one-character string

        # If the opcode has an argument embedded in the byte string, an
        # instance of ArgumentDescriptor specifying its type.  Note that
        # arg.reader(s) can be used to read and decode the argument from
        # the bytestream s, and arg.doc documents the format of the raw
        # argument bytes.  If the opcode doesn't have an argument embedded
        # in the bytestream, arg should be None.

        # what the stack looks like before this opcode runs; a list

        # what the stack looks like after this opcode runs; a list

        # the protocol number in which this opcode was introduced; an int

        # human-readable docs for this opcode; a string

Definition at line 827 of file

Definition at line 866 of file

Definition at line 863 of file

Definition at line 882 of file

Definition at line 859 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 879 of file

Definition at line 876 of file

Definition at line 871 of file

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