Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
pickletools.ArgumentDescriptor Class Reference
Inheritance diagram for pickletools.ArgumentDescriptor:
Inheritance graph
[legend]
Collaboration diagram for pickletools.ArgumentDescriptor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

 name
 n
 reader
 doc
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Private Attributes

tuple __slots__

Detailed Description

Definition at line 171 of file pickletools.py.


Constructor & Destructor Documentation

def pickletools.ArgumentDescriptor.__init__ (   self,
  name,
  n,
  reader,
  doc 
)

Definition at line 190 of file pickletools.py.

00190 
00191     def __init__(self, name, n, reader, doc):
00192         assert isinstance(name, str)
00193         self.name = name
00194 
00195         assert isinstance(n, int) and (n >= 0 or
00196                                        n in (UP_TO_NEWLINE,
00197                                              TAKEN_FROM_ARGUMENT1,
00198                                              TAKEN_FROM_ARGUMENT4))
00199         self.n = n
00200 
00201         self.reader = reader
00202 
00203         assert isinstance(doc, str)
00204         self.doc = doc

Here is the caller graph for this function:


Member Data Documentation

Initial value:
(
        # name of descriptor record, also a module global name; a string
        'name',

        # length of argument, in bytes; an int; UP_TO_NEWLINE and
        # TAKEN_FROM_ARGUMENT{1,4} are negative values for variable-length
        # cases
        'n',

        # a function taking a file-like object, reading this kind of argument
        # from the object at the current position, advancing the current
        # position by n bytes, and returning the value of the argument
        'reader',

        # human-readable docs for this arg descriptor; a string
        'doc',
    )

Definition at line 172 of file pickletools.py.

Definition at line 203 of file pickletools.py.

Definition at line 198 of file pickletools.py.

Definition at line 192 of file pickletools.py.

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 200 of file pickletools.py.


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