|
PLearn 0.1
|
#include <PythonObjectWrapper.h>
Static Public Member Functions | |
| static PyObject * | newPyObject (const bool &x) |
***///***
Definition at line 543 of file PythonObjectWrapper.h.
| PyObject * PLearn::ConvertToPyObject< bool >::newPyObject | ( | const bool & | x | ) | [static] |
Definition at line 785 of file PythonObjectWrapper.cc.
{
if (x) {
Py_XINCREF(Py_True);
return Py_True;
}
else {
Py_XINCREF(Py_False);
return Py_False;
}
}
1.7.4