/external/python/cpython3/Include/ |
D | bytesobject.h | 47 #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/ |
D | bytesobject.c | 491 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/ |
D | bytesobject.c | 497 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 …]
|
D | fileobject.c | 67 if (result != NULL && !PyBytes_Check(result) && in PyFile_GetLine() 75 if (n < 0 && result != NULL && PyBytes_Check(result)) { in PyFile_GetLine()
|
D | codeobject.c | 110 code == NULL || !PyBytes_Check(code) || in PyCode_New() 118 lnotab == NULL || !PyBytes_Check(lnotab)) { in PyCode_New()
|
/external/python/cpython3/Objects/stringlib/ |
D | stringdefs.h | 24 #define STRINGLIB_CHECK PyBytes_Check
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 4 #define PyBytes_Check PyString_Check macro
|
/external/libxml2/python/ |
D | libxml_wrap.h | 31 #ifndef PyBytes_Check 32 #define PyBytes_Check PyString_Check macro
|
/external/python/cpython3/Modules/_io/ |
D | iobase.c | 556 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()
|
D | textio.c | 1577 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()
|
D | bufferedio.c | 74 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/ |
D | iobase.c | 489 if (!PyBytes_Check(readahead)) { in iobase_readline() 529 if (!PyBytes_Check(b)) { in iobase_readline() 872 if (!PyBytes_Check(data)) { in rawiobase_readall()
|
D | fileio.c | 264 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init() 284 if (!PyBytes_Check(stringobj)) { in fileio_init()
|
/external/python/cpython3/Python/ |
D | peephole.c | 242 assert(PyBytes_Check(lnotab_obj)); in PyCode_Optimize() 253 assert(PyBytes_Check(code)); in PyCode_Optimize()
|
D | getargs.c | 527 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()
|
D | ast_opt.c | 190 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()
|
D | bltinmodule.c | 737 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/ |
D | py_seq_tensor.cc | 41 return PyBytes_Check(obj) || PyUnicode_Check(obj); in IsPyString() 425 if (PyBytes_Check(v)) { in ConvertOneString()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | numpy_bridge.cc | 188 CHECK(PyBytes_Check(bytes)); in ExtractStringAndDecref() 609 if (!PyBytes_Check(attr)) { in HandleStringAttribute()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 304 (!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.c | 553 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.c | 246 else if (!PyBytes_Check(arg)) { in dbm_contains()
|
D | _gdbmmodule.c | 326 else if (!PyBytes_Check(arg)) { in dbm_contains()
|
/external/tensorflow/tensorflow/python/util/ |
D | util.cc | 54 if (PyBytes_Check(type_name)) { in RegisterType() 82 return PyBytes_Check(o) || in IsString()
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 1140 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()
|