Example #1
0
 def __new__(cls, *args, **kwargs):
     inst = ABC.__new__(cls)
     # call setattr on ABC since we are overriding it in this class and we
     # want to use the base implementation for these special variables
     ABC.__setattr__(inst, '_sensor_vars', set())
     ABC.__setattr__(inst, '_actuator_vars', set())
     ABC.__setattr__(inst, '_controller_params', set())
     ABC.__setattr__(inst, '_record_vars', set())
     return inst
Example #2
0
 def __new__(cls, *args, **kwargs):
     inst = ABC.__new__(cls)
     ABC.__setattr__(inst, '_sensor_vars', {})
     ABC.__setattr__(inst, '_actuator_vars', {})
     return inst