예제 #1
0
 def process_args(self, frame, anchor, args, kwargs):
     if len(args) == 1:
         self.found.update_type(NoneType.get_object())
     return BuiltinConstMethod.process_args(self, frame, anchor, args,
                                            kwargs)
예제 #2
0
 def process_args(self, frame, anchor, args, kwargs):
     if len(args) == 1:
         frame.raise_expt(ErrorConfig.MaybeKeyNotFound())
     return BuiltinConstMethod.process_args(self, frame, anchor, args,
                                            kwargs)
예제 #3
0
 def process_args(self, frame, anchor, args, kwargs):
     if kwargs or len(args) != 1:
         return BuiltinConstMethod.process_args(self, frame, anchor,
                                                args, kwargs)
     self.TypeMixer(frame, anchor, self.retobj, self.src1, args[0])
     return self.retobj
예제 #4
0
 def process_args(self, frame, anchor, args, kwargs):
   if len(args) == 1:
     self.found.update_type(NoneType.get_object())
   return BuiltinConstMethod.process_args(self, frame, anchor, args, kwargs)
예제 #5
0
 def process_args(self, frame, anchor, args, kwargs):
   if len(args) == 1:
     frame.raise_expt(ErrorConfig.MaybeKeyNotFound())
   return BuiltinConstMethod.process_args(self, frame, anchor, args, kwargs)
예제 #6
0
 def process_args(self, frame, anchor, args, kwargs):
   if kwargs or len(args) != 1:
     return BuiltinConstMethod.process_args(self, frame, anchor, args, kwargs)
   self.TypeMixer(frame, anchor, self.retobj, self.src1, args[0])
   return self.retobj