Searched refs:py_type (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/third_party/cython/src/Cython/Build/ |
D | Inline.py | 66 py_type = type(arg) 67 if py_type is int: 73 py_type = type(arg) 74 if py_type in [list, tuple, dict, str]: 75 return py_type.__name__ 76 elif py_type is complex: 78 elif py_type is float: 80 elif py_type is bool: 85 for base_type in py_type.mro():
|
/external/chromium_org/third_party/cython/src/Cython/Compiler/ |
D | Code.py | 728 def __init__(self, cname, value, py_type, value_code=None): argument 731 self.py_type = py_type 1043 py_type = longness and 'long' or 'int' 1045 c = self.num_const_index[(str_value, py_type)] 1047 c = self.new_num_const(str_value, py_type) 1111 def new_num_const(self, value, py_type, value_code=None): argument 1112 cname = self.new_num_const_cname(value, py_type) 1113 c = NumConst(cname, value, py_type, value_code) 1114 self.num_const_index[(value, py_type)] = c 1128 def new_num_const_cname(self, value, py_type): argument [all …]
|