Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
distutils.tests.test_register.Inputs Class Reference
Inheritance diagram for distutils.tests.test_register.Inputs:
Inheritance graph
Collaboration diagram for distutils.tests.test_register.Inputs:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Fakes user inputs.

Definition at line 39 of file

Constructor & Destructor Documentation

def distutils.tests.test_register.Inputs.__init__ (   self,

Definition at line 41 of file

00042     def __init__(self, *answers):
00043         self.answers = answers
00044         self.index = 0

Here is the caller graph for this function:

Member Function Documentation

def distutils.tests.test_register.Inputs.__call__ (   self,
  prompt = '' 

Definition at line 45 of file

00046     def __call__(self, prompt=''):
00047         try:
00048             return self.answers[self.index]
00049         finally:
00050             self.index += 1

Member Data Documentation

Definition at line 42 of file

Definition at line 43 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

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