Example #1
0
 def __new__(cls, *args, **kwargs):
     raise error_classes.UsePythonMethod(
         'Python has simpler ways of handling '
         'functionality provided by policies.')
Example #2
0
 def __new__(cls, *args, **kwargs):
     raise error_classes.UsePythonMethod(
         'Python has simpler ways of handling field function.')
Example #3
0
 def set_local(self):
     """
     Not implemented use Python getattr and setattr.
     """
     raise error_classes.UsePythonMethod(
         'The getattr and setattr functions handle this')
Example #4
0
 def do_execute_op(self, op):
     """
     Not implemented.
     """
     raise error_classes.UsePythonMethod('Not needed in Python')
Example #5
0
 def do_unpack(self):
     """
     Not implemented yet. There are Pythonic solutions to this.
     """
     raise error_classes.UsePythonMethod(
         "use struct, pickle, json, or yaml.")