Home
last modified time | relevance | path

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

/third_party/PyYAML/yaml/
D_yaml.pyx287 if PyBytes_CheckExact(stream) == 0:
871 if PyBytes_CheckExact(value) == 0:
1008 if not PyBytes_CheckExact(handle):
1014 if not PyBytes_CheckExact(prefix):
1034 if not PyBytes_CheckExact(anchor_object):
1045 if not PyBytes_CheckExact(anchor_object):
1053 if not PyBytes_CheckExact(tag_object):
1059 if not PyBytes_CheckExact(value_object):
1087 if not PyBytes_CheckExact(anchor_object):
1095 if not PyBytes_CheckExact(tag_object):
[all …]
D_yaml.pxd20 int PyBytes_CheckExact(object o)
/third_party/python/Objects/
Dbytesobject.c1407 if (va.len == 0 && PyBytes_CheckExact(b)) { in bytes_concat()
1412 if (vb.len == 0 && PyBytes_CheckExact(a)) { in bytes_concat()
1456 if (size == Py_SIZE(a) && PyBytes_CheckExact(a)) { in bytes_repeat()
1628 PyBytes_CheckExact(self)) { in bytes_subscript()
1906 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_xstrip()
1936 if (i == 0 && j == len && PyBytes_CheckExact(self)) { in do_strip()
2105 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2135 if (!changed && PyBytes_CheckExact(input_obj)) { in bytes_translate_impl()
2229 if (PyBytes_CheckExact(self)) { in bytes_removeprefix_impl()
2268 if (PyBytes_CheckExact(self)) { in bytes_removesuffix_impl()
[all …]
Dcodeobject.c800 else if (PyBool_Check(op) || PyBytes_CheckExact(op)) { in _PyCode_ConstantKey()
Dobject.c556 if (PyBytes_CheckExact(v)) { in PyObject_Bytes()
/third_party/python/Objects/stringlib/
Dstringdefs.h24 #define STRINGLIB_CHECK_EXACT PyBytes_CheckExact
Djoin.h64 if (PyBytes_CheckExact(item)) { in STRINGLIB()
/third_party/python/Include/
Dbytesobject.h32 #define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type) macro
/third_party/python/Programs/
D_freeze_importlib.c114 assert(PyBytes_CheckExact(marshalled)); in main()
/third_party/python/Python/
Dast.c138 || PyBytes_CheckExact(value)) in validate_constant()
460 PyBytes_CheckExact(literal) || PyComplex_CheckExact(literal) || in validate_pattern_match_value()
Dmarshal.c420 else if (PyBytes_CheckExact(v)) { in w_complex_object()
DPython-ast.c1041 if (!PyUnicode_CheckExact(obj) && !PyBytes_CheckExact(obj)) { in obj2ast_string()
/third_party/python/Modules/
Doverlapped.c882 assert(PyBytes_CheckExact(self->allocated_buffer)); in _overlapped_Overlapped_getresult_impl()
890 assert(PyBytes_CheckExact(self->read_from.allocated_buffer)); in _overlapped_Overlapped_getresult_impl()
D_elementtree.c2759 if (PyBytes_CheckExact(self->data) && Py_REFCNT(self->data) == 1 && in treebuilder_handle_data()
2760 PyBytes_CheckExact(data) && PyBytes_GET_SIZE(data) == 1) { in treebuilder_handle_data()
3983 else if (!PyBytes_CheckExact(buffer) || PyBytes_GET_SIZE(buffer) == 0) { in _elementtree_XMLParser__parse_whole()
D_winapi.c270 assert(PyBytes_CheckExact(self->read_buffer)); in _winapi_Overlapped_GetOverlappedResult_impl()
D_sre.c504 if (PyBytes_CheckExact(string) && in getslice()
D_testcapimodule.c395 if (PyBytes_CheckExact(obj) == 0) { in pycompilestring()
/third_party/python/Doc/c-api/
Dbytes.rst31 .. c:function:: int PyBytes_CheckExact(PyObject *o)
/third_party/python/Modules/_io/
Dbytesio.c945 if (PyBytes_CheckExact(initvalue)) { in _io_BytesIO___init___impl()
/third_party/python/Doc/data/
Drefcounts.dat121 PyBytes_CheckExact:int:::
122 PyBytes_CheckExact:PyObject*:o:0:
/third_party/python/Parser/
Dpegen.c2397 assert(bytesmode ? PyBytes_CheckExact(s) : PyUnicode_CheckExact(s)); in _PyPegen_concatenate_strings()