Home
last modified time | relevance | path

Searched refs:PyString_Check (Results 1 – 25 of 95) sorted by relevance

1234

/external/python/cpython2/Objects/
Dmoduleobject.c71 !PyString_Check(nameobj)) in PyModule_GetName()
91 !PyString_Check(fileobj)) in PyModule_GetFilename()
120 if (value != Py_None && PyString_Check(key)) { in _PyModule_Clear()
134 if (value != Py_None && PyString_Check(key)) { in _PyModule_Clear()
Dstringobject.c437 if (!PyString_Check(str)) { in PyString_AsDecodedObject()
482 if (!PyString_Check(v)) { in PyString_AsDecodedString()
517 if (!PyString_Check(str)) { in PyString_AsEncodedObject()
562 if (!PyString_Check(v)) { in PyString_AsEncodedString()
643 assert(PyString_Check(w)); in PyString_DecodeEscape()
785 if (!PyString_Check(op)) in PyString_Size()
793 if (!PyString_Check(op)) in PyString_AsString()
808 if (!PyString_Check(obj)) { in PyString_AsStringAndSize()
997 assert(PyString_Check(s)); in string_str()
1020 if (!PyString_Check(bb)) { in string_concat()
[all …]
Dclassobject.c49 if (name == NULL || !PyString_Check(name)) { in PyClass_New()
232 if (!PyString_Check(name)) { in class_getattr()
328 if (v == NULL || !PyString_Check(v)) in set_name()
345 if (!PyString_Check(name)) { in class_setattr()
393 if (op->cl_name == NULL || !PyString_Check(op->cl_name)) in class_repr()
397 if (mod == NULL || !PyString_Check(mod)) in class_repr()
413 if (name == NULL || !PyString_Check(name)) in class_str()
415 if (mod == NULL || !PyString_Check(mod)) { in class_str()
714 if (!PyString_Check(name)) { in instance_getattr1()
802 assert(PyString_Check(name)); in _PyInstance_Lookup()
[all …]
Dcodeobject.c108 name == NULL || !PyString_Check(name) || in PyCode_New()
109 filename == NULL || !PyString_Check(filename) || in PyCode_New()
110 lnotab == NULL || !PyString_Check(lnotab) || in PyCode_New()
238 else if (!PyString_Check(item)) { in validate_and_copy_tuple()
373 if (co->co_filename && PyString_Check(co->co_filename)) in code_repr()
375 if (co->co_name && PyString_Check(co->co_name)) in code_repr()
Dobject.c395 if (!PyString_Check(res)) { in PyObject_Repr()
434 type_ok = PyString_Check(res); in _PyObject_Str()
465 assert(PyString_Check(res)); in PyObject_Str()
1176 if (!PyString_Check(name)) { in PyObject_GetAttr()
1223 if (!PyString_Check(name)){ in PyObject_SetAttr()
1336 if (!PyString_Check(name)){ in _PyObject_GenericGetAttrWithDict()
1474 if (!PyString_Check(name)){ in _PyObject_GenericSetAttrWithDict()
1764 if (PyString_Check(item)) { in merge_list_attr()
Dfuncobject.c31 if (!PyString_Check(doc) && !PyUnicode_Check(doc)) in PyFunction_New()
282 if (value == NULL || !PyString_Check(value)) { in func_set_name()
381 if (name != Py_None && !PyString_Check(name)) { in func_new()
/external/python/cpython2/Modules/
Ddlmodule.c61 if (PyString_Check(args)) { in dl_sym()
91 if (!PyString_Check(name)) { in dl_call()
112 else if (PyString_Check(v)) in dl_call()
Dsyslogmodule.c90 if (!PyString_Check(scriptobj)) { in syslog_get_argv()
D_struct.c516 if (!PyString_Check(v) || PyString_Size(v) != 1) { in np_char()
1378 if (PyString_Check(o_format)) { in s_init()
1464 if (PyString_Check(inputstr) && in s_unpack()
1567 if (!PyString_Check(v)) { in s_pack_internal()
1579 if (!PyString_Check(v)) { in s_pack_internal()
Dmmapmodule.c861 if (! (PyString_Check(v)) ) { in mmap_ass_slice()
893 if (! (PyString_Check(v) && PyString_Size(v)==1) ) { in mmap_ass_item()
928 if (!PyString_Check(value) || PyString_Size(value) != 1) { in mmap_ass_subscript()
952 if (!PyString_Check(value)) { in mmap_ass_subscript()
D_localemodule.c292 if (PyString_Check(os1) && PyString_Check(os2)) in PyLocale_strcoll()
/external/python/cpython2/Python/
Dgetargs.c451 if (!PySequence_Check(arg) || PyString_Check(arg)) { in converttuple()
844 if (PyString_Check(arg) && PyString_Size(arg) == 1) in convertsimple()
855 if (PyString_Check(arg)) { in convertsimple()
886 if (PyString_Check(arg)) { in convertsimple()
911 if (PyString_Check(arg)) in convertsimple()
937 else if (PyString_Check(arg)) { in convertsimple()
972 else if (PyString_Check(arg)) { in convertsimple()
999 else if (PyString_Check(arg)) in convertsimple()
1065 if (!recode_strings && PyString_Check(arg)) { in convertsimple()
1088 if (!PyString_Check(s)) { in convertsimple()
[all …]
Dbltinmodule.c254 if (PyString_Check(seq)) in builtin_filter()
541 if (PyString_Check(cmd)) { in builtin_compile()
681 if (!PyString_Check(cmd) && in builtin_eval()
843 if (!PyString_Check(name)) { in builtin_getattr()
899 if (!PyString_Check(name)) { in builtin_hasattr()
1218 if (res && !PyString_Check(res)) { in builtin_hex()
1486 if (res && !PyString_Check(res)) { in builtin_oct()
1521 if (PyString_Check(obj)) { in builtin_ord()
1635 else if (!PyString_Check(sep)) { in builtin_print()
1648 else if (!PyString_Check(end)) { in builtin_print()
[all …]
Dmactoolboxglue.c164 if (!PyString_Check(v) || PyString_Size(v) != 4) { in PyMac_GetOSType()
195 if (!PyString_Check(v) || (len = PyString_Size(v)) > 255) { in PyMac_GetStr255()
Dpeephole.c318 assert(PyString_Check(lineno_obj)); in PyCode_Optimize()
325 assert(PyString_Check(code)); in PyCode_Optimize()
/external/python/cpython2/Doc/includes/
Dnoddy3.c96 if (! PyString_Check(value)) { in Noddy_setfirst()
124 if (! PyString_Check(value)) { in Noddy_setlast()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c149 if (PyString_Check(src) || PyUnicode_Check(src)) in PyCF_Python2CF()
252 if (PyString_Check(src) || PyUnicode_Check(src)) in PyCF_Python2CF_simple()
284 if (PyString_Check(src)) { in PyCF_Python2CF_string()
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h25 #define STRINGLIB_CHECK PyString_Check
/external/python/cpython2/Include/
Dbytesobject.h4 #define PyBytes_Check PyString_Check
Dstringobject.h58 #define PyString_Check(op) \ macro
/external/python/cpython2/Modules/_sqlite/
Dcursor.c475 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute()
497 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute()
532 if (PyString_Check(operation)) { in _pysqlite_query_execute()
799 if (PyString_Check(script_obj)) { in pysqlite_cursor_executescript()
Dstatement.c64 if (PyString_Check(sql)) { in pysqlite_statement_create()
139 } else if (PyString_Check(parameter)) { in pysqlite_statement_bind_parameter()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1152 if (!PyString_Check(value) || (1 != PyString_Size(value))) { in c_set()
1175 if (PyString_Check(value)) { in u_set()
1250 if (PyString_Check(value)) { in U_set()
1344 if (PyString_Check(value)) { in z_set()
1399 if (PyString_Check(value)) { in Z_set()
1493 } else if (PyString_Check(value)) { in BSTR_set()
D_ctypes.c776 if (value && PyString_Check(key) && in PyCStructType_setattro()
790 if (PyString_Check(key) && in UnionType_setattro()
1209 } else if (!PyString_Check(value)) { in CharArray_set_value()
1263 if (PyString_Check(value)) { in WCharArray_set_value()
1561 if (PyUnicode_Check(value) || PyString_Check(value)) { in c_wchar_p_from_param()
1629 if (PyString_Check(value) || PyUnicode_Check(value)) { in c_char_p_from_param()
1719 if (PyString_Check(value)) { in c_void_p_from_param()
1793 if (stgd && CDataObject_Check(value) && stgd->proto && PyString_Check(stgd->proto)) { in c_void_p_from_param()
1961 if (PyString_Check(proto)) { in PyCSimpleType_new()
3245 && PyString_Check(dict->proto) in _check_outarg_type()
[all …]
/external/python/cpython2/PC/
D_subprocess.c359 if (! PyString_Check(key) || ! PyString_Check(value)) { in getenvironment()

1234