98TPyReturn::operator
char *()
const
101 return (
char *)((
const char *)*
this);
107TPyReturn::operator
const char *()
const
109 if (fPyObject == Py_None)
112 const char *s = PyUnicode_AsUTF8(fPyObject);
113 if (PyErr_Occurred()) {
126 std::string s =
operator const char *();
138 Long_t l = PyLong_AsLong(fPyObject);
140 if (PyErr_Occurred())
151 ULong_t ul = PyLong_AsUnsignedLong(fPyObject);
153 if (PyErr_Occurred())
164 Double_t d = PyFloat_AsDouble(fPyObject);
166 if (PyErr_Occurred())
176TPyReturn::operator
void *()
const
178 if (fPyObject == Py_None)
189 if (fPyObject == Py_None)
192 Py_INCREF(fPyObject);
TPyReturn & operator=(const TPyReturn &)
Assignment operator. Applies python object reference counting.
virtual ~TPyReturn()
Destructor. Reference counting for the held python object is in effect.