Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_doctest.SampleClass.NestedClass Class Reference

List of all members.

Public Member Functions

def __init__
def square
def get

Public Attributes

 val

Detailed Description

>>> x = SampleClass.NestedClass(5)
>>> y = x.square()
>>> print(y.get())
25

Definition at line 88 of file test_doctest.py.


Constructor & Destructor Documentation

>>> print(SampleClass.NestedClass().get())
0

Definition at line 95 of file test_doctest.py.

00095 
00096         def __init__(self, val=0):
00097             """
00098             >>> print(SampleClass.NestedClass().get())
00099             0
00100             """
            self.val = val

Here is the caller graph for this function:


Member Function Documentation

Definition at line 103 of file test_doctest.py.

00103 
00104         def get(self):
00105             return self.val

Here is the caller graph for this function:

Definition at line 101 of file test_doctest.py.

00101 
00102         def square(self):
            return SampleClass.NestedClass(self.val*self.val)

Member Data Documentation

Definition at line 100 of file test_doctest.py.


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