Home
last modified time | relevance | path

Searched refs:PyString_Check (Results 1 – 25 of 97) 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()
649 assert(PyString_Check(w)); in PyString_DecodeEscape()
791 if (!PyString_Check(op)) in PyString_Size()
799 if (!PyString_Check(op)) in PyString_AsString()
814 if (!PyString_Check(obj)) { in PyString_AsStringAndSize()
1003 assert(PyString_Check(s)); in string_str()
1026 if (!PyString_Check(bb)) { in string_concat()
[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()
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()
713 if (!PyString_Check(name)) { in instance_getattr1()
801 assert(PyString_Check(name)); in _PyInstance_Lookup()
[all …]
Dobject.c400 if (!PyString_Check(res)) { in PyObject_Repr()
439 type_ok = PyString_Check(res); in _PyObject_Str()
470 assert(PyString_Check(res)); in PyObject_Str()
1181 if (!PyString_Check(name)) { in PyObject_GetAttr()
1228 if (!PyString_Check(name)){ in PyObject_SetAttr()
1341 if (!PyString_Check(name)){ in _PyObject_GenericGetAttrWithDict()
1479 if (!PyString_Check(name)){ in _PyObject_GenericSetAttrWithDict()
1769 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()
115 else if (PyString_Check(v)) in dl_call()
Dmmapmodule.c843 if (! (PyString_Check(v)) ) { in mmap_ass_slice()
875 if (! (PyString_Check(v) && PyString_Size(v)==1) ) { in mmap_ass_item()
910 if (!PyString_Check(value) || PyString_Size(value) != 1) { in mmap_ass_subscript()
933 if (!PyString_Check(value)) { in mmap_ass_subscript()
D_struct.c516 if (!PyString_Check(v) || PyString_Size(v) != 1) { in np_char()
1382 if (PyString_Check(o_format)) { in s_init()
1468 if (PyString_Check(inputstr) && in s_unpack()
1571 if (!PyString_Check(v)) { in s_pack_internal()
1583 if (!PyString_Check(v)) { in s_pack_internal()
Dsyslogmodule.c90 if (!PyString_Check(scriptobj)) { in syslog_get_argv()
/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.c253 if (PyString_Check(seq)) in builtin_filter()
542 if (PyString_Check(cmd)) { in builtin_compile()
682 if (!PyString_Check(cmd) && in builtin_eval()
844 if (!PyString_Check(name)) { in builtin_getattr()
900 if (!PyString_Check(name)) { in builtin_hasattr()
1219 if (res && !PyString_Check(res)) { in builtin_hex()
1487 if (res && !PyString_Check(res)) { in builtin_oct()
1522 if (PyString_Check(obj)) { in builtin_ord()
1636 else if (!PyString_Check(sep)) { in builtin_print()
1649 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()
Dimport.c511 if (PyString_Check(key) && PyModule_Check(value)) { in PyImport_Cleanup()
535 if (PyString_Check(key) && PyModule_Check(value)) { in PyImport_Cleanup()
1405 if (path != NULL && PyString_Check(path)) { in find_module()
1486 if (!PyString_Check(v)) in find_module()
2390 if (!PyString_Check(pkgname)) { in get_parent()
2413 if (modname == NULL || !PyString_Check(modname)) in get_parent()
2615 if (!PyString_Check(item)) { in ensure_fromlist()
Dpeephole.c318 assert(PyString_Check(lineno_obj)); in PyCode_Optimize()
325 assert(PyString_Check(code)); in PyCode_Optimize()
/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/Doc/includes/
Dnoddy3.c94 if (! PyString_Check(value)) { in Noddy_setfirst()
122 if (! PyString_Check(value)) { in Noddy_setlast()
/external/python/cpython2/Include/
Dbytesobject.h4 #define PyBytes_Check PyString_Check
Dstringobject.h58 #define PyString_Check(op) \ macro
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h25 #define STRINGLIB_CHECK PyString_Check
/external/python/cpython2/Modules/_sqlite/
Dcursor.c474 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute()
496 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute()
531 if (PyString_Check(operation)) { in _pysqlite_query_execute()
798 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.c1160 if (!PyString_Check(value) || (1 != PyString_Size(value))) { in c_set()
1183 if (PyString_Check(value)) { in u_set()
1258 if (PyString_Check(value)) { in U_set()
1352 if (PyString_Check(value)) { in z_set()
1407 if (PyString_Check(value)) { in Z_set()
1501 } else if (PyString_Check(value)) { in BSTR_set()
D_ctypes.c847 if (value && PyString_Check(key) && in PyCStructType_setattro()
861 if (PyString_Check(key) && in UnionType_setattro()
1289 } else if (!PyString_Check(value)) { in CharArray_set_value()
1343 if (PyString_Check(value)) { in WCharArray_set_value()
1641 if (PyUnicode_Check(value) || PyString_Check(value)) { in c_wchar_p_from_param()
1709 if (PyString_Check(value) || PyUnicode_Check(value)) { in c_char_p_from_param()
1799 if (PyString_Check(value)) { in c_void_p_from_param()
1873 if (stgd && CDataObject_Check(value) && stgd->proto && PyString_Check(stgd->proto)) { in c_void_p_from_param()
2041 if (PyString_Check(proto)) { in PyCSimpleType_new()
3339 && PyString_Check(dict->proto) in _check_outarg_type()
[all …]
/external/python/cpython2/PC/
D_subprocess.c363 if (! PyString_Check(key) || ! PyString_Check(value)) { in getenvironment()

1234