Searched refs:PyBytes_Type (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython3/Include/ |
D | bytesobject.h | 44 PyAPI_DATA(PyTypeObject) PyBytes_Type; 49 #define PyBytes_CheckExact(op) (Py_TYPE(op) == &PyBytes_Type)
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 2 #define PyBytes_Type PyString_Type macro
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 88 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in _PyBytes_FromSize() 166 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in PyBytes_FromString() 1516 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in bytes_repeat() 2340 if (type != &PyBytes_Type && result != NULL) { in bytes_fromhex_impl() 2539 if (type != &PyBytes_Type) in bytes_new() 2839 assert(PyType_IsSubtype(type, &PyBytes_Type)); in bytes_subtype_new() 2840 tmp = bytes_new(&PyBytes_Type, args, kwds); in bytes_subtype_new() 2871 PyTypeObject PyBytes_Type = { variable
|
D | object.c | 1762 if (PyType_Ready(&PyBytes_Type) < 0) in _Py_ReadyTypes()
|
D | typeobject.c | 4912 else if (PyType_IsSubtype(base, &PyBytes_Type)) in inherit_special()
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 88 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in _PyBytes_FromSize() 166 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in PyBytes_FromString() 1510 (void)PyObject_INIT_VAR(op, &PyBytes_Type, size); in bytes_repeat() 2347 if (type != &PyBytes_Type && result != NULL) { in bytes_fromhex_impl() 2544 if (type != &PyBytes_Type) in bytes_new() 2807 assert(PyType_IsSubtype(type, &PyBytes_Type)); in bytes_subtype_new() 2808 tmp = bytes_new(&PyBytes_Type, args, kwds); in bytes_subtype_new() 2839 PyTypeObject PyBytes_Type = { variable
|
/external/python/cpython3/Doc/c-api/ |
D | bytes.rst | 19 .. c:var:: PyTypeObject PyBytes_Type
|
/external/python/cpython3/PC/ |
D | python3.def | 36 PyBytes_Type=python37.PyBytes_Type DATA
|
/external/python/cpython3/Lib/test/ |
D | clinic.test | 125 h: object(subclass_of="&PyBytes_Type") 163 …e, &d, &PyFrozenSet_Type, &e, &PyDict_Type, &f, &PyUnicode_Type, &g, &PyBytes_Type, &h, &PyByteArr…
|
/external/python/cpython3/Modules/_sqlite/ |
D | cursor.c | 317 } else if (self->connection->text_factory == (PyObject*)&PyBytes_Type) { in _pysqlite_fetch_one_row()
|
/external/python/cpython3/Modules/clinic/ |
D | _codecsmodule.c.h | 204 &PyBytes_Type, &data, &errors)) { in _codecs_escape_encode()
|
/external/python/cpython3/Python/ |
D | bltinmodule.c | 2833 SETBUILTIN("bytes", &PyBytes_Type); in _PyBuiltin_Init()
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 2219 reduce_value = Py_BuildValue("(O())", (PyObject*)&PyBytes_Type); in save_bytes() 3997 if (type == &PyBytes_Type) { in save()
|