99TPyReturn::operator
char *()
const
102 return (
char *)((
const char *)*
this);
108TPyReturn::operator
const char *()
const
110 if (fPyObject == Py_None)
114 if (PyErr_Occurred()) {
127 std::string s =
operator const char *();
139 Long_t l = PyLong_AsLong(fPyObject);
141 if (PyErr_Occurred())
152 ULong_t ul = PyLong_AsUnsignedLong(fPyObject);
154 if (PyErr_Occurred())
165 Double_t d = PyFloat_AsDouble(fPyObject);
167 if (PyErr_Occurred())
177TPyReturn::operator
void *()
const
179 if (fPyObject == Py_None)
194 if (fPyObject == Py_None)
197 Py_INCREF(fPyObject);
#define CPyCppyy_PyText_AsString
TPyReturn & operator=(const TPyReturn &)
Assignment operator. Applies python object reference counting.
virtual ~TPyReturn()
Destructor. Reference counting for the held python object is in effect.
bool CPPInstance_Check(T *object)