Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes | Static Private Attributes
test.test_index.NewSeq Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __eq__
def __len__
def __mul__
def __getitem__

Private Attributes

 _list

Static Private Attributes

 __rmul__ = __mul__

Detailed Description

Definition at line 163 of file test_index.py.


Constructor & Destructor Documentation

def test.test_index.NewSeq.__init__ (   self,
  iterable 
)

Definition at line 165 of file test_index.py.

00165 
00166     def __init__(self, iterable):
00167         self._list = list(iterable)

Here is the caller graph for this function:


Member Function Documentation

def test.test_index.NewSeq.__eq__ (   self,
  other 
)

Definition at line 171 of file test_index.py.

00171 
00172     def __eq__(self, other):
00173         return self._list == other

def test.test_index.NewSeq.__getitem__ (   self,
  index 
)

Definition at line 181 of file test_index.py.

00181 
00182     def __getitem__(self, index):
00183         return self._list[index]
00184 

Definition at line 174 of file test_index.py.

00174 
00175     def __len__(self):
00176         return len(self._list)

def test.test_index.NewSeq.__mul__ (   self,
  n 
)

Definition at line 177 of file test_index.py.

00177 
00178     def __mul__(self, n):
        return self.__class__(self._list*n)

Definition at line 168 of file test_index.py.

00168 
00169     def __repr__(self):
00170         return repr(self._list)


Member Data Documentation

Definition at line 179 of file test_index.py.

Definition at line 166 of file test_index.py.


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