HWRF  trunk@4391
Public Member Functions | List of all members
produtil.pipeline.Constant Class Reference

A class used to implement named constants. More...

Detailed Description

A class used to implement named constants.

Definition at line 23 of file pipeline.py.

Inheritance diagram for produtil.pipeline.Constant:

Public Member Functions

def __init__
 Creates a named constant. More...
 
def __str__ (self)
 Returns the s argument to the constructor. More...
 
def __repr__ (self)
 Returns the r argument of the constructor. More...
 

Constructor & Destructor Documentation

def produtil.pipeline.Constant.__init__ (   self,
  s,
  r = None 
)

Creates a named constant.

Parameters
sthe return value of str() = str(self)
rthe return value of repr() = repr(self)

Definition at line 25 of file pipeline.py.

Member Function Documentation

def produtil.pipeline.Constant.__repr__ (   self)

Returns the r argument of the constructor.

Definition at line 36 of file pipeline.py.

Referenced by produtil.prog.Runner.__str__().

def produtil.pipeline.Constant.__str__ (   self)

Returns the s argument to the constructor.

Definition at line 33 of file pipeline.py.


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