|
PLearn 0.1
|
#include <PythonObjectWrapper.h>
Static Public Member Functions | |
| static PPointable * | convert (PyObject *, bool print_traceback) |
Definition at line 328 of file PythonObjectWrapper.h.
| PPointable * PLearn::ConvertFromPyObject< PPointable * >::convert | ( | PyObject * | pyobj, |
| bool | print_traceback | ||
| ) | [static] |
Definition at line 186 of file PythonObjectWrapper.cc.
References PLASSERT, and PLearn::PLPythonConversionError().
{
PLASSERT(pyobj);
if (! PyCObject_Check(pyobj))
PLPythonConversionError("ConvertFromPyObject<PPointable*>", pyobj,
print_traceback);
return static_cast<PPointable*>(PyCObject_AsVoidPtr(pyobj));
}

1.7.4