Home
last modified time | relevance | path

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

1234

/external/python/cpython3/Include/cpython/
Dbytesobject.h32 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
34 #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
/external/python/cpython3/Objects/stringlib/clinic/
Dtransmogrify.h.h96 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_ljust()
157 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_rjust()
218 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) { in stringlib_center()
/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.c484 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in byte_converter()
533 if (PyBytes_Check(v)) { in format_obj()
552 if (!PyBytes_Check(result)) { in format_obj()
619 !PyTuple_Check(args) && !PyBytes_Check(args) && !PyUnicode_Check(args) && in _PyBytes_FormatEx()
1199 if (!PyBytes_Check(op)) { in PyBytes_Size()
1210 if (!PyBytes_Check(op)) { in PyBytes_AsString()
1228 if (!PyBytes_Check(obj)) { in PyBytes_AsStringAndSize()
1500 if (!(PyBytes_Check(a) && PyBytes_Check(b))) { in bytes_richcompare()
1827 assert(sep != NULL && PyBytes_Check(sep)); in _PyBytes_Join()
2032 if (PyBytes_Check(table)) { in bytes_translate_impl()
[all …]
Dfileobject.c70 if (result != NULL && !PyBytes_Check(result) && in PyFile_GetLine()
78 if (n < 0 && result != NULL && PyBytes_Check(result)) { in PyFile_GetLine()
/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/python/cpython3/Objects/clinic/
Dcodeobject.c.h160 if (!PyBytes_Check(args[7])) { in code_replace()
245 if (!PyBytes_Check(args[15])) { in code_replace()
/external/python/cpython3/Include/
Dbytesobject.h33 #define PyBytes_Check(op) \ macro
/external/libxml2/python/
Dlibxml_wrap.h31 #ifndef PyBytes_Check
32 #define PyBytes_Check PyString_Check macro
/external/tensorflow/tensorflow/python/util/
Dstack_trace.cc30 if (PyBytes_Check(o)) { in GetPythonString()
/external/python/cpython3/PC/clinic/
D_testconsole.c.h35 if (!PyBytes_Check(args[1])) { in _testconsole_write_input()
Dmsvcrtmodule.c.h371 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_putch()
445 if (PyBytes_Check(arg) && PyBytes_GET_SIZE(arg) == 1) { in msvcrt_ungetch()
/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/Modules/_io/
Diobase.c567 if (!PyBytes_Check(readahead)) { in _io__IOBase_readline_impl()
607 if (!PyBytes_Check(b)) { in _io__IOBase_readline_impl()
987 if (!PyBytes_Check(data)) { in _io__RawIOBase_readall_impl()
Dtextio.c1551 if (PyBytes_Check(pending)) { in _textiowrapper_writeflush()
1584 assert(PyBytes_Check(obj)); in _textiowrapper_writeflush()
1677 if (b != text && !PyBytes_Check(b)) { in _io_TextIOWrapper_write_impl()
1833 if (!PyBytes_Check(dec_buffer)) { in textiowrapper_read_chunk()
2581 if (!PyBytes_Check(input_chunk)) { in _io_TextIOWrapper_seek_impl()
2692 assert (PyBytes_Check(next_input)); in _io_TextIOWrapper_tell_impl()
2728 if (!PyBytes_Check(dec_buffer)) { \ in _io_TextIOWrapper_tell_impl()
/external/python/cpython3/Lib/test/
Dclinic.test217 if (!PyBytes_Check(args[7])) {
271 if (!PyBytes_Check(arg)) {
503 if (PyBytes_Check(args[0]) && PyBytes_GET_SIZE(args[0]) == 1) {
516 if (PyBytes_Check(args[1]) && PyBytes_GET_SIZE(args[1]) == 1) {
529 if (PyBytes_Check(args[2]) && PyBytes_GET_SIZE(args[2]) == 1) {
542 if (PyBytes_Check(args[3]) && PyBytes_GET_SIZE(args[3]) == 1) {
555 if (PyBytes_Check(args[4]) && PyBytes_GET_SIZE(args[4]) == 1) {
568 if (PyBytes_Check(args[5]) && PyBytes_GET_SIZE(args[5]) == 1) {
581 if (PyBytes_Check(args[6]) && PyBytes_GET_SIZE(args[6]) == 1) {
594 if (PyBytes_Check(args[7]) && PyBytes_GET_SIZE(args[7]) == 1) {
[all …]
/external/python/cpython3/Python/
Dpystrhex.c32 else if (PyBytes_Check(sep)) { in _Py_strhex_impl()
Dpeephole.c249 assert(PyBytes_Check(lnotab_obj)); in PyCode_Optimize()
264 assert(PyBytes_Check(code)); in PyCode_Optimize()
Dast_opt.c151 else if (PyLong_Check(v) && (PyUnicode_Check(w) || PyBytes_Check(w))) { in safe_multiply()
163 PyUnicode_Check(v) || PyBytes_Check(v))) in safe_multiply()
208 if (PyUnicode_Check(v) || PyBytes_Check(v)) { in safe_mod()
Dgetargs.c528 if (!PySequence_Check(arg) || PyBytes_Check(arg)) { in converttuple()
914 if (PyBytes_Check(arg) && PyBytes_Size(arg) == 1) in convertsimple()
1151 (PyBytes_Check(arg) || PyByteArray_Check(arg))) { in convertsimple()
1154 if (PyBytes_Check(arg)) { in convertsimple()
1171 assert(PyBytes_Check(s)); in convertsimple()
1303 if (PyBytes_Check(arg)) in convertsimple()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc81 PyBytes_Check(key) ? PyBytes_AsString(key) in PyArrayDescr_to_TF_DataType()
204 if (PyBytes_Check(obj)) { in PyObjectToString()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c294 (!PyUnicode_Check((tobj = PyTuple_GET_ITEM(retobj, 0))) && !PyBytes_Check(tobj)) || in multibytecodec_encerror()
316 assert(PyBytes_Check(retstr)); in multibytecodec_encerror()
1449 if (!PyBytes_Check(cres)) { in mbstreamreader_iread()
1869 assert(PyBytes_Check(pwrt)); in _multibytecodec_MultibyteStreamWriter_reset_impl()
/external/python/cffi/c/
Dminibuffer.h47 if (PyBytes_Check(other) && PyBytes_GET_SIZE(other) == 1) { in mb_ass_item()

1234