Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_keywordonlyarg.Foo Class Reference

List of all members.

Public Member Functions

def __init__
def set
def sum

Public Attributes

 k1
 k2

Detailed Description

Definition at line 30 of file test_keywordonlyarg.py.


Constructor & Destructor Documentation

def test.test_keywordonlyarg.Foo.__init__ (   self,
  k1,
  k2 = 0 
)

Definition at line 31 of file test_keywordonlyarg.py.

00031 
00032     def __init__(self, *, k1, k2=0):
00033         self.k1 = k1
        self.k2 = k2

Here is the caller graph for this function:


Member Function Documentation

def test.test_keywordonlyarg.Foo.set (   self,
  p1,
  k1,
  k2 
)

Definition at line 34 of file test_keywordonlyarg.py.

00034 
00035     def set(self, p1, *, k1, k2):
00036         self.k1 = k1
        self.k2 = k2

Here is the caller graph for this function:

Definition at line 37 of file test_keywordonlyarg.py.

00037 
00038     def sum(self):
00039         return self.k1 + self.k2


Member Data Documentation

Definition at line 32 of file test_keywordonlyarg.py.

Definition at line 33 of file test_keywordonlyarg.py.


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