Home
last modified time | relevance | path

Searched refs:PyBytes_Type (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Include/
Dbytesobject.h44 PyAPI_DATA(PyTypeObject) PyBytes_Type;
49 #define PyBytes_CheckExact(op) (Py_TYPE(op) == &PyBytes_Type)
/external/python/cpython2/Include/
Dbytesobject.h2 #define PyBytes_Type PyString_Type macro
/external/python/cpython3/Objects/
Dbytesobject.c88 (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
Dobject.c1762 if (PyType_Ready(&PyBytes_Type) < 0) in _Py_ReadyTypes()
Dtypeobject.c4912 else if (PyType_IsSubtype(base, &PyBytes_Type)) in inherit_special()
/external/python/cpython2/Objects/
Dbytesobject.c88 (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/
Dbytes.rst19 .. c:var:: PyTypeObject PyBytes_Type
/external/python/cpython3/PC/
Dpython3.def36 PyBytes_Type=python37.PyBytes_Type DATA
/external/python/cpython3/Lib/test/
Dclinic.test125 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/
Dcursor.c317 } else if (self->connection->text_factory == (PyObject*)&PyBytes_Type) { in _pysqlite_fetch_one_row()
/external/python/cpython3/Modules/clinic/
D_codecsmodule.c.h204 &PyBytes_Type, &data, &errors)) { in _codecs_escape_encode()
/external/python/cpython3/Python/
Dbltinmodule.c2833 SETBUILTIN("bytes", &PyBytes_Type); in _PyBuiltin_Init()
/external/python/cpython3/Modules/
D_pickle.c2219 reduce_value = Py_BuildValue("(O())", (PyObject*)&PyBytes_Type); in save_bytes()
3997 if (type == &PyBytes_Type) { in save()