Exemple #1
0
 def __new__(cls, *args, **kwargs):
     raise error_classes.UsePythonMethod(
         'Python has simpler ways of handling '
         'functionality provided by policies.')
Exemple #2
0
 def __new__(cls, *args, **kwargs):
     raise error_classes.UsePythonMethod(
         'Python has simpler ways of handling field function.')
Exemple #3
0
 def set_local(self):
     """
     Not implemented use Python getattr and setattr.
     """
     raise error_classes.UsePythonMethod(
         'The getattr and setattr functions handle this')
Exemple #4
0
 def do_execute_op(self, op):
     """
     Not implemented.
     """
     raise error_classes.UsePythonMethod('Not needed in Python')
Exemple #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.")