Home
last modified time | relevance | path

Searched refs:PyBytes_CheckExact (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython3/Objects/stringlib/
Dstringdefs.h25 #define STRINGLIB_CHECK_EXACT PyBytes_CheckExact
Djoin.h61 if (PyBytes_CheckExact(item)) { in STRINGLIB()
/external/python/cpython2/Include/
Dbytesobject.h5 #define PyBytes_CheckExact PyString_CheckExact macro
/external/python/cpython3/Objects/
Dbytesobject.c1433 if (va.len == 0 && PyBytes_CheckExact(b)) { in bytes_concat()
1438 if (vb.len == 0 && PyBytes_CheckExact(a)) { in bytes_concat()
1482 if (size == Py_SIZE(a) && PyBytes_CheckExact(a)) { in bytes_repeat()
1684 PyBytes_CheckExact(self)) { in bytes_subscript()
1962 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_xstrip()
1992 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_strip()
2160 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2190 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2756 if (PyBytes_CheckExact(x)) { in PyBytes_FromObject()
2878 if (Py_REFCNT(*pv) == 1 && PyBytes_CheckExact(*pv)) { in PyBytes_Concat()
[all …]
Dcodeobject.c485 || PyBytes_CheckExact(op) in _PyCode_ConstantKey()
Dobject.c592 if (PyBytes_CheckExact(v)) { in PyObject_Bytes()
/external/python/cpython3/Programs/
D_freeze_importlib.c104 assert(PyBytes_CheckExact(marshalled)); in main()
/external/python/cpython3/Include/
Dbytesobject.h49 #define PyBytes_CheckExact(op) (Py_TYPE(op) == &PyBytes_Type) macro
/external/python/cpython3/Doc/c-api/
Dbytes.rst31 .. c:function:: int PyBytes_CheckExact(PyObject *o)
/external/python/cpython3/Modules/_io/
Dbytesio.c968 if (PyBytes_CheckExact(initvalue)) { in _io_BytesIO___init___impl()
/external/python/cpython2/Objects/
Dcodeobject.c429 || PyBytes_CheckExact(op) in _PyCode_ConstantKey()
Dbytearrayobject.c30 if (PyBytes_CheckExact(arg)) { in _getbytevalue()
/external/python/cpython3/Modules/
D_elementtree.c2564 if (PyBytes_CheckExact(self->data) && Py_REFCNT(self->data) == 1 && in treebuilder_handle_data()
2565 PyBytes_CheckExact(data) && PyBytes_GET_SIZE(data) == 1) { in treebuilder_handle_data()
3502 else if (!PyBytes_CheckExact(buffer) || PyBytes_GET_SIZE(buffer) == 0) { in _elementtree_XMLParser__parse_whole()
D_winapi.c230 assert(PyBytes_CheckExact(self->read_buffer)); in _winapi_Overlapped_GetOverlappedResult_impl()
Doverlapped.c688 assert(PyBytes_CheckExact(self->read_buffer)); in Overlapped_getresult()
D_sre.c459 if (PyBytes_CheckExact(string) && in getslice()
/external/python/cpython3/Python/
Dast.c145 || PyBytes_CheckExact(value)) in validate_constant()
324 if (!PyBytes_CheckExact(b)) { in validate_expr()
5177 assert(bytesmode ? PyBytes_CheckExact(s) : in parsestrplus()
Dmarshal.c427 else if (PyBytes_CheckExact(v)) { in w_complex_object()
DPython-ast.c788 if (!PyUnicode_CheckExact(obj) && !PyBytes_CheckExact(obj)) { in obj2ast_string()
797 if (!PyBytes_CheckExact(obj)) { in obj2ast_bytes()