def convert_arg (   self,
  arg 
)

utility to make sure python constants get converted to C2Constant objects in subclasses

Parameters:
arg something which might be a number or another C2Function
Returns:
a C2Function

Definition at line 257 of file C2Functions.py.

00257                               : 
00258         "convert constants to C2Constants"
00259         import operator
00260         if type(arg) is types.FloatType or type(arg) is types.IntType:
00261             return C2Constant(arg)
00262         else: 
00263             return arg


Generated on Wed Nov 21 10:18:31 2007 for analysis by  doxygen 1.5.4