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
Collaboration diagram for test.string_tests.BadSeq1:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__
def __len__
def __getitem__

Public Attributes


Detailed Description

Definition at line 14 of file

Constructor & Destructor Documentation

Definition at line 15 of file

    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,
) [inherited]

Definition at line 12 of file

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

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

Definition at line 16 of file

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

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