Lines Matching defs:Builtin

12                Builtin=object, Symtab=object, Utils=object, find_coercion_error=object,
31 from Builtin import list_type, tuple_type, set_type, dict_type, type_type, \
33 import Builtin
71 (Builtin.unicode_type, Builtin.bytes_type) : "Cannot convert Unicode string to 'bytes' implicitly, encoding required.",
72 (Builtin.unicode_type, Builtin.str_type) : "Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.",
73 (Builtin.unicode_type, PyrexTypes.c_char_ptr_type) : "Unicode objects only support coercion to Py_UNICODE*.",
74 (Builtin.unicode_type, PyrexTypes.c_uchar_ptr_type) : "Unicode objects only support coercion to Py_UNICODE*.",
75 (Builtin.bytes_type, Builtin.unicode_type) : "Cannot convert 'bytes' object to unicode implicitly, decoding required",
76 (Builtin.bytes_type, Builtin.str_type) : "Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.",
77 (Builtin.bytes_type, Builtin.basestring_type) : "Cannot convert 'bytes' object to basestring implicitly. This is not portable to Py3.",
78 (Builtin.bytes_type, PyrexTypes.c_py_unicode_ptr_type) : "Cannot convert 'bytes' object to Py_UNICODE*, use 'unicode'.",
79 (Builtin.basestring_type, Builtin.bytes_type) : "Cannot convert 'basestring' object to bytes implicitly. This is not portable.",
80 (Builtin.str_type, Builtin.unicode_type) : "str objects do not support coercion to unicode, use a unicode string literal instead (u'')",
81 (Builtin.str_type, Builtin.bytes_type) : "Cannot convert 'str' to 'bytes' implicitly. This is not portable.",
82 (Builtin.str_type, PyrexTypes.c_char_ptr_type) : "'str' objects do not support coercion to C types (use 'bytes'?).",
83 (Builtin.str_type, PyrexTypes.c_uchar_ptr_type) : "'str' objects do not support coercion to C types (use 'bytes'?).",
84 (Builtin.str_type, PyrexTypes.c_py_unicode_ptr_type) : "'str' objects do not support coercion to C types (use 'unicode'?).",
85 (PyrexTypes.c_char_ptr_type, Builtin.unicode_type) : "Cannot convert 'char*' to unicode implicitly, decoding required",
86 (PyrexTypes.c_uchar_ptr_type, Builtin.unicode_type) : "Cannot convert 'char*' to unicode implicitly, decoding required",
991 type=Builtin.bool_type)
1145 type=Builtin.float_type)
1235 if dst_type in (py_object_type, Builtin.bytes_type):
1236 node.type = Builtin.bytes_type
1325 elif dst_type not in (py_object_type, Builtin.basestring_type):
1408 # if dst_type is Builtin.bytes_type:
1413 if dst_type is not Builtin.basestring_type:
4262 elif function.entry.name in Builtin.types_that_construct_their_instance:
4287 entry.name in Builtin.types_that_construct_their_instance):
4394 if func_type is Builtin.type_type and function.is_name and \
4397 function.entry.name in Builtin.types_that_construct_their_instance:
4404 self.type = Builtin.builtin_types[function.entry.name]
5777 if not arg.type.assignable_from(Builtin.list_type):
5781 arg.type = Builtin.list_type
5810 if self.type is Builtin.tuple_type and (self.is_literal or self.slow) and not c_mult:
5820 if self.type is Builtin.list_type:
5822 elif self.type is Builtin.tuple_type:
5879 elif self.type is Builtin.tuple_type and (self.is_literal or self.slow):
6506 if self.type is Builtin.list_type:
6508 elif self.type is Builtin.set_type:
6510 elif self.type is Builtin.dict_type:
6689 code.globalstate.use_utility_code(Builtin.py_set_utility_code)
6874 self.type = Builtin.list_type
6878 if arg.type is Builtin.dict_type:
6889 if self.arg.type is Builtin.dict_type:
7068 if self.starstar_arg.type is not Builtin.dict_type:
7084 if self.starstar_arg.type is not Builtin.dict_type:
7936 env.use_utility_code(Builtin.globals_utility_code)
8951 type2 = Builtin.bytes_type
8953 type2 = Builtin.unicode_type
8955 type1 = Builtin.bytes_type
8957 type1 = Builtin.unicode_type
9832 if Builtin.unicode_type in (type1, type2):
9964 if type1 is Builtin.unicode_type or type2 is Builtin.unicode_type:
9968 elif type1 is Builtin.bytes_type or type2 is Builtin.bytes_type:
9972 elif type1 is Builtin.basestring_type or type2 is Builtin.basestring_type:
9976 elif type1 is Builtin.str_type or type2 is Builtin.str_type:
9981 if self.operand2.type is Builtin.dict_type:
9986 elif self.operand2.type is Builtin.unicode_type:
10699 self.type = Builtin.complex_type
10772 self.type = Builtin.bytes_type
10851 Builtin.list_type : 'PyList_GET_SIZE',
10852 Builtin.tuple_type : 'PyTuple_GET_SIZE',
10853 Builtin.bytes_type : 'PyBytes_GET_SIZE',
10854 Builtin.unicode_type : 'PyUnicode_GET_SIZE',