Back to index

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

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__
def __add__
def __mul__
def __rmul__

Public Attributes

 lst
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 20 of file test_operator.py.


Constructor & Destructor Documentation

def test.test_operator.Seq2.__init__ (   self,
  lst 
)

Definition at line 21 of file test_operator.py.

00021 
00022     def __init__(self, lst):
        self.lst = lst

Here is the caller graph for this function:


Member Function Documentation

def test.test_operator.Seq2.__add__ (   self,
  other 
)

Definition at line 27 of file test_operator.py.

00027 
00028     def __add__(self, other):
        return self.lst + other.lst
def test.test_operator.Seq2.__getitem__ (   self,
  i 
)

Definition at line 25 of file test_operator.py.

00025 
00026     def __getitem__(self, i):
        return self.lst[i]

Definition at line 23 of file test_operator.py.

00023 
00024     def __len__(self):
        return len(self.lst)
def test.test_operator.Seq2.__mul__ (   self,
  other 
)

Definition at line 29 of file test_operator.py.

00029 
00030     def __mul__(self, other):
        return self.lst * other
def test.test_operator.Seq2.__rmul__ (   self,
  other 
)

Definition at line 31 of file test_operator.py.

00031 
00032     def __rmul__(self, other):
00033         return other * self.lst
00034 


Member Data Documentation

Definition at line 22 of file test_operator.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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