PLearn 0.1
|
#include <PythonObjectWrapper.h>
Static Public Member Functions | |
static U | convert (PyObject *x, bool print_traceback) |
Definition at line 982 of file PythonObjectWrapper.h.
static U PLearn::StaticConvertEnumFromPyObject< U, is_enum >::convert | ( | PyObject * | x, |
bool | print_traceback | ||
) | [inline, static] |
Definition at line 984 of file PythonObjectWrapper.h.
References PLERROR.
Referenced by PLearn::StaticConvertEnumFromPyObject< U, true >::convert().
{ PLERROR("Cannot convert this object by value from python (type=%s).", TypeTraits<U>::name().c_str()); return U();//to silence compiler }