I'm familiar with other oop languages but new to Python. i wanted to know if this is the right way to define properties in a class
class TwoInputParameters(object):
def __init__(self,firstParameter,secondParameter,operator):
self.firstParameter= firstParameter
self.secondParametr = secondParameter
self.operator = operator
my second question is - how can i reach this properties when given an object of the TwoInputParameters type as a method's input?
thanks a lot!
getattr (object, attribute_name)effbot.org/zone/python-getattr.htm