Lines Matching defs:Builtin

5                Nodes=object, ExprNodes=object, PyrexTypes=object, Builtin=object,
12 import Builtin
123 if iterator.type is Builtin.dict_type:
134 if iterator.type is Builtin.bytes_type:
136 if iterator.type is Builtin.unicode_type:
216 if arg.type in (Builtin.tuple_type, Builtin.list_type):
225 PyrexTypes.CFuncTypeArg("s", Builtin.bytes_type, None)
230 PyrexTypes.CFuncTypeArg("s", Builtin.bytes_type, None)
235 if not target_type.is_int and target_type is not Builtin.bytes_type:
307 type=Builtin.unicode_type, # hint for Python conversion
482 if slice_node.type is Builtin.unicode_type:
500 type=Builtin.bytes_type,
775 args = [dict_obj, flag_node(dict_obj.type is Builtin.dict_type),
1195 if node.base.type != Builtin.list_type:
1305 if arg_type in (PyrexTypes.c_double_type, Builtin.float_type):
1448 and pos_args[0].type is Builtin.list_type:
1465 append = append_node, type = Builtin.list_type,
1473 pos = loop_node.pos, type = Builtin.list_type, may_hold_none=False)
1596 result = self._transform_list_set_genexpr(node, pos_args, Builtin.list_type)
1615 return self._transform_list_set_genexpr(node, pos_args, Builtin.list_type)
1620 return self._transform_list_set_genexpr(node, pos_args, Builtin.set_type)
1686 type = Builtin.dict_type)
1785 if arg.type in (PyrexTypes.py_object_type, Builtin.bool_type):
1829 PyrexTypes.CFuncTypeArg("bytes", Builtin.bytes_type, None),
1839 if arg.base.type is Builtin.bytes_type:
1917 While the method declarations in Builtin.py already handle this, we
1957 Builtin.dict_type, [
1958 PyrexTypes.CFuncTypeArg("dict", Builtin.dict_type, None)
1967 if arg.type is Builtin.dict_type:
1977 Builtin.tuple_type, [
1978 PyrexTypes.CFuncTypeArg("list", Builtin.list_type, None)
1987 if arg.type is Builtin.tuple_type and not arg.may_be_none():
1989 if arg.type is not Builtin.list_type:
2001 Builtin.set_type, [
2036 Builtin.frozenset_type, [
2045 elif pos_args[0].type is Builtin.frozenset_type and not pos_args[0].may_be_none():
2072 ).coerce_to(Builtin.float_type, self.current_env())
2120 ).coerce_to(Builtin.bool_type, self.current_env())
2151 Builtin.unicode_type : "__Pyx_PyUnicode_GET_LENGTH",
2152 Builtin.bytes_type : "PyBytes_GET_SIZE",
2153 Builtin.list_type : "PyList_GET_SIZE",
2154 Builtin.tuple_type : "PyTuple_GET_SIZE",
2155 Builtin.dict_type : "PyDict_Size",
2156 Builtin.set_type : "PySet_Size",
2157 Builtin.frozenset_type : "PySet_Size",
2209 Builtin.type_type, [
2241 elif types.type is Builtin.type_type:
2256 if builtin_type is Builtin.type_type:
2267 elif test_type_node.type is Builtin.type_type:
2323 PyrexTypes.CFuncTypeArg("args", Builtin.tuple_type, None),
2329 PyrexTypes.CFuncTypeArg("args", Builtin.tuple_type, None),
2330 PyrexTypes.CFuncTypeArg("kwargs", Builtin.dict_type, None),
2344 if obj.type != Builtin.type_type or type_arg.type != Builtin.type_type:
2682 Builtin.list_type, [
2683 PyrexTypes.CFuncTypeArg("str", Builtin.unicode_type, None),
2702 Builtin.list_type, [
2703 PyrexTypes.CFuncTypeArg("str", Builtin.unicode_type, None),
2767 return method_call.coerce_to(Builtin.bool_type, self.current_env())
2771 PyrexTypes.CFuncTypeArg("str", Builtin.unicode_type, None),
2809 PyrexTypes.CFuncTypeArg("str", Builtin.unicode_type, None),
2834 Builtin.unicode_type, [
2835 PyrexTypes.CFuncTypeArg("str", Builtin.unicode_type, None),
2856 Builtin.bytes_type, [
2857 PyrexTypes.CFuncTypeArg("obj", Builtin.unicode_type, None),
2863 Builtin.bytes_type, [
2864 PyrexTypes.CFuncTypeArg("obj", Builtin.unicode_type, None),
2906 string_node.pos, value=value, type=Builtin.bytes_type)
2925 Builtin.unicode_type, [
2932 Builtin.unicode_type, [
2942 Builtin.unicode_type, [
2974 if string_type in (Builtin.bytes_type, Builtin.bytearray_type):
3037 Builtin.unicode_type, [
3053 if string_type is Builtin.bytes_type:
3119 elif node.type is Builtin.bytes_type:
3595 if node.type is Builtin.list_type:
3598 elif node.type is Builtin.set_type:
3601 elif node.type is Builtin.dict_type: