43 virtual bool accepts(PyObject *pyob)
const {
44 return pyob !=
nullptr && PyType_Check(pyob);
Object(PyObject *pyob=Py_None)
Take a borrowed reference and add a count of its own.
Definition object.h:52
void validate()
Enforce this type's accepts() test on the stored reference.
Definition object.h:237
virtual bool accepts(PyObject *pyob) const
Accept only a type object.
Definition type.h:43
Type(PyObject *pyob)
Take a borrowed reference to an existing type object.
Definition type.h:31
Configuration header of the PyCXX binding layer.
C++ wrappers for the embedded Python interpreter's objects, types, and extension modules.
Definition attributeerror.h:7