76 if (
this != &other ) {
95TPyReturn::operator
char*()
const
98 return (
char*)((
const char*)*
this);
104TPyReturn::operator
const char*()
const
106 if ( fPyObject == Py_None )
110 if ( PyErr_Occurred() ) {
123 std::string
s =
operator const char*();
135 Long_t l = PyLong_AsLong( fPyObject );
137 if ( PyErr_Occurred() )
148 ULong_t ul = PyLong_AsUnsignedLong( fPyObject );
150 if ( PyErr_Occurred() )
162 Double_t d = PyFloat_AsDouble( fPyObject );
164 if ( PyErr_Occurred() )
174TPyReturn::operator
void*()
const
176 if ( fPyObject == Py_None )
191 if ( fPyObject == Py_None )
194 Py_INCREF( fPyObject );
#define PyROOT_PyUnicode_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_t ObjectProxy_Check(T *object)
static constexpr double s