Home
last modified time | relevance | path

Searched refs:PyBytes_Check (Results 1 – 25 of 77) sorted by relevance

1234

/external/python/cpython3/Include/
Dbytesobject.h47 #define PyBytes_Check(op) \ macro
87 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
89 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
/external/python/cpython2/Objects/
Dbytesobject.c491 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter()
541 if (PyBytes_Check(v)) { in format_obj()
560 if (!PyBytes_Check(result)) { in format_obj()
627 !PyTuple_Check(args) && !PyBytes_Check(args) && !PyUnicode_Check(args) && in _PyBytes_FormatEx()
1107 assert(PyBytes_Check(w)); in _PyBytes_DecodeEscapeRecode()
1274 if (!PyBytes_Check(op)) { in PyBytes_Size()
1285 if (!PyBytes_Check(op)) { in PyBytes_AsString()
1303 if (!PyBytes_Check(obj)) { in PyBytes_AsStringAndSize()
1573 if (!(PyBytes_Check(a) && PyBytes_Check(b))) { in bytes_richcompare()
1913 assert(sep != NULL && PyBytes_Check(sep)); in _PyBytes_Join()
[all …]
/external/python/cpython3/Objects/
Dbytesobject.c497 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter()
547 if (PyBytes_Check(v)) { in format_obj()
566 if (!PyBytes_Check(result)) { in format_obj()
633 !PyTuple_Check(args) && !PyBytes_Check(args) && !PyUnicode_Check(args) && in _PyBytes_FormatEx()
1113 assert(PyBytes_Check(w)); in _PyBytes_DecodeEscapeRecode()
1280 if (!PyBytes_Check(op)) { in PyBytes_Size()
1291 if (!PyBytes_Check(op)) { in PyBytes_AsString()
1309 if (!PyBytes_Check(obj)) { in PyBytes_AsStringAndSize()
1578 if (!(PyBytes_Check(a) && PyBytes_Check(b))) { in bytes_richcompare()
1906 assert(sep != NULL && PyBytes_Check(sep)); in _PyBytes_Join()
[all …]
Dfileobject.c67 if (result != NULL && !PyBytes_Check(result) && in PyFile_GetLine()
75 if (n < 0 && result != NULL && PyBytes_Check(result)) { in PyFile_GetLine()
Dcodeobject.c110 code == NULL || !PyBytes_Check(code) || in PyCode_New()
118 lnotab == NULL || !PyBytes_Check(lnotab)) { in PyCode_New()
/external/python/cpython3/Objects/stringlib/
Dstringdefs.h24 #define STRINGLIB_CHECK PyBytes_Check
/external/python/cpython2/Include/
Dbytesobject.h4 #define PyBytes_Check PyString_Check macro
/external/libxml2/python/
Dlibxml_wrap.h31 #ifndef PyBytes_Check
32 #define PyBytes_Check PyString_Check macro
/external/python/cpython3/Modules/_io/
Diobase.c556 if (!PyBytes_Check(readahead)) { in _io__IOBase_readline_impl()
596 if (!PyBytes_Check(b)) { in _io__IOBase_readline_impl()
971 if (!PyBytes_Check(data)) { in _io__RawIOBase_readall_impl()
Dtextio.c1577 if (!PyBytes_Check(b)) { in _io_TextIOWrapper_write_impl()
1717 if (!PyBytes_Check(dec_buffer)) { in textiowrapper_read_chunk()
2460 if (!PyBytes_Check(input_chunk)) { in _io_TextIOWrapper_seek_impl()
2571 assert (PyBytes_Check(next_input)); in _io_TextIOWrapper_tell_impl()
2607 if (!PyBytes_Check(dec_buffer)) { \ in _io_TextIOWrapper_tell_impl()
Dbufferedio.c74 if (!PyBytes_Check(data)) { in _bufferediobase_readinto_generic()
1364 if (line && !PyBytes_Check(line)) { in buffered_iternext()
1551 if (tmp != Py_None && !PyBytes_Check(tmp)) { in _bufferedreader_read_all()
1581 if (data != Py_None && !PyBytes_Check(data)) { in _bufferedreader_read_all()
/external/python/cpython2/Modules/_io/
Diobase.c489 if (!PyBytes_Check(readahead)) { in iobase_readline()
529 if (!PyBytes_Check(b)) { in iobase_readline()
872 if (!PyBytes_Check(data)) { in rawiobase_readall()
Dfileio.c264 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init()
284 if (!PyBytes_Check(stringobj)) { in fileio_init()
/external/python/cpython3/Python/
Dpeephole.c242 assert(PyBytes_Check(lnotab_obj)); in PyCode_Optimize()
253 assert(PyBytes_Check(code)); in PyCode_Optimize()
Dgetargs.c527 if (!PySequence_Check(arg) || PyBytes_Check(arg)) { in converttuple()
891 if (PyBytes_Check(arg) && PyBytes_Size(arg) == 1) in convertsimple()
1124 (PyBytes_Check(arg) || PyByteArray_Check(arg))) { in convertsimple()
1127 if (PyBytes_Check(arg)) { in convertsimple()
1144 assert(PyBytes_Check(s)); in convertsimple()
1252 if (PyBytes_Check(arg)) in convertsimple()
Dast_opt.c190 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply()
202 PyUnicode_Check(v) || PyBytes_Check(v))) in safe_multiply()
247 if (PyUnicode_Check(v) || PyBytes_Check(v)) { in safe_mod()
Dbltinmodule.c737 else if (PyBytes_Check(cmd)) { in source_as_string()
1788 if (PyBytes_Check(c)) { in builtin_ord()
2080 assert(PyBytes_Check(po)); in builtin_input_impl()
2339 if (PyBytes_Check(result)) { in builtin_sum_impl()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc41 return PyBytes_Check(obj) || PyUnicode_Check(obj); in IsPyString()
425 if (PyBytes_Check(v)) { in ConvertOneString()
/external/tensorflow/tensorflow/compiler/xla/python/
Dnumpy_bridge.cc188 CHECK(PyBytes_Check(bytes)); in ExtractStringAndDecref()
609 if (!PyBytes_Check(attr)) { in HandleStringAttribute()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c304 (!PyUnicode_Check((tobj = PyTuple_GET_ITEM(retobj, 0))) && !PyBytes_Check(tobj)) || in multibytecodec_encerror()
326 assert(PyBytes_Check(retstr)); in multibytecodec_encerror()
1288 if (!PyBytes_Check(cres)) { in mbstreamreader_iread()
1708 assert(PyBytes_Check(pwrt)); in _multibytecodec_MultibyteStreamWriter_reset_impl()
/external/python/cpython3/Modules/
D_struct.c553 if (!PyBytes_Check(v) || PyBytes_GET_SIZE(v) != 1) { in np_char()
1453 if (!PyBytes_Check(format)) { in Struct___init___impl()
1755 isstring = PyBytes_Check(v); in s_pack_internal()
1777 isstring = PyBytes_Check(v); in s_pack_internal()
D_dbmmodule.c246 else if (!PyBytes_Check(arg)) { in dbm_contains()
D_gdbmmodule.c326 else if (!PyBytes_Check(arg)) { in dbm_contains()
/external/tensorflow/tensorflow/python/util/
Dutil.cc54 if (PyBytes_Check(type_name)) { in RegisterType()
82 return PyBytes_Check(o) || in IsString()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1140 if (PyBytes_Check(value) && PyBytes_GET_SIZE(value) == 1) { in c_set()
1288 if(!PyBytes_Check(value)) { in s_set()
1322 if (PyBytes_Check(value)) { in z_set()

1234