Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
asdl.Sum Class Reference
Inheritance diagram for asdl.Sum:
Inheritance graph
[legend]
Collaboration diagram for asdl.Sum:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 types
 attributes
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 295 of file asdl.py.


Constructor & Destructor Documentation

def asdl.Sum.__init__ (   self,
  types,
  attributes = None 
)

Definition at line 296 of file asdl.py.

00296 
00297     def __init__(self, types, attributes=None):
00298         self.types = types
00299         self.attributes = attributes or []

Here is the caller graph for this function:


Member Function Documentation

def asdl.Sum.__repr__ (   self)

Definition at line 300 of file asdl.py.

00300 
00301     def __repr__(self):
00302         if self.attributes is None:
00303             return "Sum(%s)" % self.types
00304         else:
00305             return "Sum(%s, %s)" % (self.types, self.attributes)


Member Data Documentation

Definition at line 298 of file asdl.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 297 of file asdl.py.


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