Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_operator.Seq1 Class Reference

List of all members.

Public Member Functions

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

Public Attributes

 lst

Detailed Description

Definition at line 6 of file test_operator.py.


Constructor & Destructor Documentation

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

Definition at line 7 of file test_operator.py.

00007 
00008     def __init__(self, lst):
        self.lst = lst

Here is the caller graph for this function:


Member Function Documentation

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

Definition at line 13 of file test_operator.py.

00013 
00014     def __add__(self, other):
        return self.lst + other.lst
def test.test_operator.Seq1.__getitem__ (   self,
  i 
)

Definition at line 11 of file test_operator.py.

00011 
00012     def __getitem__(self, i):
        return self.lst[i]

Definition at line 9 of file test_operator.py.

00009 
00010     def __len__(self):
        return len(self.lst)
def test.test_operator.Seq1.__mul__ (   self,
  other 
)

Definition at line 15 of file test_operator.py.

00015 
00016     def __mul__(self, other):
        return self.lst * other
def test.test_operator.Seq1.__rmul__ (   self,
  other 
)

Definition at line 17 of file test_operator.py.

00017 
00018     def __rmul__(self, other):
00019         return other * self.lst


Member Data Documentation

Definition at line 8 of file test_operator.py.


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