Exemple #1
0
 def params(self):
     params_str, ret = self._parse_function_doc()
     tokens = params_str.split(',')
     params = []
     for p in tokens:
         parts = [FakeName(part) for part in p.strip().split('=')]
         if len(parts) > 1:
             parts.insert(1, Operator(zero_position_modifier, '=', (0, 0)))
         params.append(Param(parts, self))
     return params
Exemple #2
0
 def get_params(self):
     return []  # TODO Fix me.
     params_str, ret = self._parse_function_doc()
     tokens = params_str.split(',')
     if inspect.ismethoddescriptor(self.obj):
         tokens.insert(0, 'self')
     params = []
     for p in tokens:
         parts = [FakeName(part) for part in p.strip().split('=')]
         if len(parts) > 1:
             parts.insert(1, Operator('=', (0, 0)))
         params.append(Param(parts, self))
     return params