Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/stringlib/
Dstringdefs.h25 #define STRINGLIB_CHECK_EXACT PyBytes_CheckExact
Djoin.h64 if (PyBytes_CheckExact(item)) { in STRINGLIB()
/external/python/cpython2/Include/
Dbytesobject.h5 #define PyBytes_CheckExact PyString_CheckExact macro
/external/python/cpython3/Objects/
Dbytesobject.c1376 if (va.len == 0 && PyBytes_CheckExact(b)) { in bytes_concat()
1381 if (vb.len == 0 && PyBytes_CheckExact(a)) { in bytes_concat()
1425 if (size == Py_SIZE(a) && PyBytes_CheckExact(a)) { in bytes_repeat()
1613 PyBytes_CheckExact(self)) { in bytes_subscript()
1891 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_xstrip()
1921 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_strip()
2090 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2120 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2214 if (PyBytes_CheckExact(self)) { in bytes_removeprefix_impl()
2253 if (PyBytes_CheckExact(self)) { in bytes_removesuffix_impl()
[all …]
Dcodeobject.c715 else if (PyBool_Check(op) || PyBytes_CheckExact(op)) { in _PyCode_ConstantKey()
Dobject.c536 if (PyBytes_CheckExact(v)) { in PyObject_Bytes()
/external/python/cpython3/Include/
Dbytesobject.h35 #define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type) macro
/external/python/cpython2/Objects/
Dbytesobject.c1448 if (va.len == 0 && PyBytes_CheckExact(b)) { in bytes_concat()
1453 if (vb.len == 0 && PyBytes_CheckExact(a)) { in bytes_concat()
1497 if (size == Py_SIZE(a) && PyBytes_CheckExact(a)) { in bytes_repeat()
1699 PyBytes_CheckExact(self)) { in bytes_subscript()
1977 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_xstrip()
2007 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_strip()
2175 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2205 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2771 if (PyBytes_CheckExact(x)) { in PyBytes_FromObject()
2893 if (Py_REFCNT(*pv) == 1 && PyBytes_CheckExact(*pv)) { in PyBytes_Concat()
[all …]
Dcodeobject.c428 || PyBytes_CheckExact(op) in _PyCode_ConstantKey()
Dbytearrayobject.c30 if (PyBytes_CheckExact(arg)) { in _getbytevalue()
/external/python/cpython3/Programs/
D_freeze_importlib.c114 assert(PyBytes_CheckExact(marshalled)); in main()
/external/python/cpython3/Doc/c-api/
Dbytes.rst31 .. c:function:: int PyBytes_CheckExact(PyObject *o)
/external/python/cpython3/Modules/
Doverlapped.c807 assert(PyBytes_CheckExact(self->allocated_buffer)); in Overlapped_getresult()
815 assert(PyBytes_CheckExact(self->read_from.allocated_buffer)); in Overlapped_getresult()
D_elementtree.c2762 if (PyBytes_CheckExact(self->data) && Py_REFCNT(self->data) == 1 && in treebuilder_handle_data()
2763 PyBytes_CheckExact(data) && PyBytes_GET_SIZE(data) == 1) { in treebuilder_handle_data()
3986 else if (!PyBytes_CheckExact(buffer) || PyBytes_GET_SIZE(buffer) == 0) { in _elementtree_XMLParser__parse_whole()
D_winapi.c239 assert(PyBytes_CheckExact(self->read_buffer)); in _winapi_Overlapped_GetOverlappedResult_impl()
D_sre.c484 if (PyBytes_CheckExact(string) && in getslice()
/external/python/cpython3/Modules/_io/
Dbytesio.c945 if (PyBytes_CheckExact(initvalue)) { in _io_BytesIO___init___impl()
/external/python/cpython3/Python/
Dmarshal.c420 else if (PyBytes_CheckExact(v)) { in w_complex_object()
Dast.c137 || PyBytes_CheckExact(value)) in validate_constant()
5804 assert(bytesmode ? PyBytes_CheckExact(s) : in parsestrplus()
DPython-ast.c1165 if (!PyUnicode_CheckExact(obj) && !PyBytes_CheckExact(obj)) { in obj2ast_string()
/external/python/cpython3/Doc/data/
Drefcounts.dat121 PyBytes_CheckExact:int:::
122 PyBytes_CheckExact:PyObject*:o:0:
/external/python/cpython3/Parser/pegen/
Dpegen.c2068 assert(bytesmode ? PyBytes_CheckExact(s) : PyUnicode_CheckExact(s)); in _PyPegen_concatenate_strings()