Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __len__
def __getitem__

Public Attributes

 seq

Detailed Description

Definition at line 14 of file string_tests.py.


Constructor & Destructor Documentation

Definition at line 15 of file string_tests.py.

00015 
    def __init__(self): self.seq = [7, 'hello', 123]

Here is the caller graph for this function:


Member Function Documentation

def test.string_tests.Sequence.__getitem__ (   self,
  i 
) [inherited]

Definition at line 12 of file string_tests.py.

00012 
00013     def __getitem__(self, i): return self.seq[i]

def test.string_tests.Sequence.__len__ (   self) [inherited]

Reimplemented in test.string_tests.BadSeq2.

Definition at line 11 of file string_tests.py.

00011 
    def __len__(self): return len(self.seq)

Definition at line 16 of file string_tests.py.

00016 
00017     def __str__(self): return '{0} {1} {2}'.format(*self.seq)


Member Data Documentation

Reimplemented from test.string_tests.Sequence.

Definition at line 15 of file string_tests.py.


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