41 virtual bool accepts(PyObject *pyob)
const {
42 return pyob !=
nullptr && PyFloat_Check(pyob);
Float(PyObject *pyob)
Take a borrowed reference to an existing float.
Definition float.h:29
virtual bool accepts(PyObject *pyob) const
Accept only a float.
Definition float.h:41
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
Configuration header of the PyCXX binding layer.
C++ wrappers for the embedded Python interpreter's objects, types, and extension modules.
Definition attributeerror.h:7