Home
last modified time | relevance | path

Searched refs:ob_type (Results 1 – 25 of 37) sorted by relevance

12

/third_party/boost/libs/python/src/object/
Denum.cpp53 … PyUnicode_FromFormat("%S.%s(%ld)", mod, self_->ob_type->tp_name, PyLong_AsLong(self_)); in enum_repr()
55 …PyString_FromFormat("%s.%s(%ld)", PyString_AsString(mod), self_->ob_type->tp_name, PyInt_AS_LONG(s… in enum_repr()
66 PyUnicode_FromFormat("%S.%s.%S", mod, self_->ob_type->tp_name, name); in enum_repr()
69 PyString_AsString(mod), self_->ob_type->tp_name, PyString_AsString(name)); in enum_repr()
Dfunction.cpp303 char const* name = PyTuple_GetItem(args, i)->ob_type->tp_name; in argument_error()
428 if (attribute.ptr()->ob_type == &function_type) in add_to_namespace()
453 if (existing->ob_type == &function_type) in add_to_namespace()
463 else if (existing->ob_type == &PyStaticMethod_Type) in add_to_namespace()
Dlife_support.cpp23 self->ob_type->tp_free(self); in life_support_dealloc()
/third_party/boost/libs/python/src/converter/
Dfrom_python.cpp104 , source->ob_type->tp_name in rvalue_from_python_stage2()
211 , source->ob_type->tp_name in throw_no_lvalue_from_python()
296 , source->ob_type->tp_name in pytype_check()
Dbuiltin_converters.cpp157 PyNumberMethods* number_methods = obj->ob_type->tp_as_number; in get_slot()
189 PyNumberMethods* number_methods = obj->ob_type->tp_as_number; in get_slot()
247 PyNumberMethods* number_methods = obj->ob_type->tp_as_number; in get_slot()
343 PyNumberMethods* number_methods = obj->ob_type->tp_as_number; in get_slot()
388 return (PyString_Check(obj)) ? &obj->ob_type->tp_str : 0; in get_slot()
/third_party/boost/boost/mpi/python/
Dserialize.hpp227 typename savers_t::iterator pos = savers.find(obj.ptr()->ob_type); in saver()
276 type = obj.ptr()->ob_type; in register_type()
308 type = obj.ptr()->ob_type; in register_type()
334 if (!is_fundamental<T>::value && obj && obj.ptr()->ob_type == type) { in operator ()()
Dskeleton_and_content.hpp174 type = object(value).ptr()->ob_type; in register_skeleton_and_content()
/third_party/boost/boost/python/detail/
Dwrap_python.hpp218 ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
224 # define Py_TYPE(o) (((PyObject*)(o))->ob_type)
/third_party/boost/libs/mpi/src/python/
Dskeleton_and_content.cpp68 PyTypeObject* type = value.ptr()->ob_type; in skeleton()
83 PyTypeObject* type = value.ptr()->ob_type; in get_content()
/third_party/python/Include/
Dobject.h108 PyTypeObject *ob_type; member
124 #define Py_TYPE(ob) (_PyObject_CAST(ob)->ob_type)
128 return ob->ob_type == type; in _Py_IS_TYPE()
138 ob->ob_type = type; in _Py_SET_TYPE()
/third_party/python/Lib/
Dcopyreg.py12 def pickle(ob_type, pickle_function, constructor_ob=None): argument
15 dispatch_table[ob_type] = pickle_function
/third_party/boost/libs/python/src/numpy/
Ddtype.cpp155 if (obj->ob_type == get_pytype()) in convertible()
161 dtype dt(python::detail::borrowed_reference(obj->ob_type)); in convertible()
/third_party/boost/libs/python/src/
Dobject_protocol.cpp107 PyTypeObject *tp = u->ob_type; in apply_slice()
137 PyTypeObject *tp = u->ob_type; in assign_slice()
Ddict.cpp25 return p->ptr()->ob_type == &PyDict_Type; in check_exact()
/third_party/boost/libs/python/test/
Dcallbacks.cpp107 return call<handle<> >(x.get(), type_handle(borrowed(x->ob_type))); in apply_to_own_type()
Dbuiltin_converters.cpp52 return handle<PyTypeObject>(borrowed(x->ob_type)); in get_type()
/third_party/skia/third_party/externals/brotli/python/
D_brotli.cc156 self->ob_type->tp_free((PyObject*)self); in brotli_Compressor_dealloc()
442 self->ob_type->tp_free((PyObject*)self); in brotli_Decompressor_dealloc()
/third_party/python/PC/
D_msi.c146 result->ob_type->tp_name); in FNFCIGETNEXTCABINET()
733 if (oparams->ob_type != &record_Type) { in view_execute()
789 if (data->ob_type != &record_Type) { in view_modify()
Dwinreg.c114 #define PyHKEY_Check(op) ((op)->ob_type == &PyHKEY_Type)
696 value->ob_type->tp_name); in Py2Reg()
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage_factory.cc96 pool->ob_type->tp_name); in New()
Drepeated_composite_container.cc274 item->ob_type->tp_name); in Subscript()
/third_party/boost/libs/python/doc/reference/
Dconcepts.qbk67 [[`&a.ob_type`][`PyTypeObject**`]
68 [Points to the `ob_type` field of an object which is layout-compatible with `PyObject`]]
/third_party/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c767 # define Py_TYPE(op) ((op)->ob_type)
1670 if (PyType_IsSubtype(op->ob_type, target_tp)) in SwigPyObject_Check()
1672 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); in SwigPyObject_Check()
2008 swigpyobject_type.ob_type = &PyType_Type; in SwigPyObject_TypeOnce()
2096 return ((op)->ob_type == SwigPyPacked_TypeOnce()) in SwigPyPacked_Check()
2097 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); in SwigPyPacked_Check()
2195 swigpypacked_type.ob_type = &PyType_Type; in SwigPyPacked_TypeOnce()
2897 const char *otype = (obj ? obj->ob_type->tp_name : 0); in SWIG_Python_TypeError()
2939 PyTypeObject *tp = obj->ob_type; in SWIG_Python_NonDynamicSetAttr()
2955 …PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_nam… in SWIG_Python_NonDynamicSetAttr()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c763 # define Py_TYPE(op) ((op)->ob_type)
1657 if (PyType_IsSubtype(op->ob_type, target_tp)) in SwigPyObject_Check()
1659 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); in SwigPyObject_Check()
1986 swigpyobject_type.ob_type = &PyType_Type; in SwigPyObject_TypeOnce()
2074 return ((op)->ob_type == SwigPyPacked_TypeOnce()) in SwigPyPacked_Check()
2075 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); in SwigPyPacked_Check()
2174 swigpypacked_type.ob_type = &PyType_Type; in SwigPyPacked_TypeOnce()
2876 const char *otype = (obj ? obj->ob_type->tp_name : 0); in SWIG_Python_TypeError()
2918 PyTypeObject *tp = obj->ob_type; in SWIG_Python_NonDynamicSetAttr()
2934 …PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_nam… in SWIG_Python_NonDynamicSetAttr()
[all …]
/third_party/python/Doc/c-api/
Dstructures.rst67 This macro is used to access the :attr:`ob_type` member of a Python object.
70 (((PyObject*)(o))->ob_type)

12