18#include "../../cppyy/CPyCppyy/src/CallContext.h"
19#include "../../cppyy/CPyCppyy/src/ProxyWrappers.h"
25#include "RConfigure.h"
44 PyArg_ParseTuple(args,
"UU:RegisterConverterAlias", &
name, &
target);
56 PyArg_ParseTuple(args,
"UU:RegisterExecutorAlias", &
name, &
target);
68 (
char *)
"Add a custom pickling mechanism for Cppyy Python proxy objects"},
70 (
char *)
"Allow to access branches as tree attributes"},
72 (
char *)
"Cast the void* returned by TClass::DynamicCast to the right type"},
74 (
char *)
"Add equality and inequality comparison operators to TObject"},
76 (
char *)
"Fully enable the use of TTree::Branch from Python"},
78 (
char *)
"Add pretty printing pythonization"},
80 (
char *)
"Initialize interactive ROOT use from Python"},
82 (
char *)
"Install an input hook to process GUI events"},
84 (
char *)
"Deserialize a pickled object"},
85 {(
char *)
"JupyROOTExecutor", (PyCFunction)
JupyROOTExecutor, METH_VARARGS, (
char *)
"Create JupyROOTExecutor"},
86 {(
char *)
"JupyROOTDeclarer", (PyCFunction)
JupyROOTDeclarer, METH_VARARGS, (
char *)
"Create JupyROOTDeclarer"},
88 (
char *)
"Clear JupyROOTExecutorHandler"},
90 (
char *)
"Create JupyROOTExecutorHandler"},
92 (
char *)
"Poll JupyROOTExecutorHandler"},
94 (
char *)
"End capture JupyROOTExecutorHandler"},
96 (
char *)
"Init capture JupyROOTExecutorHandler"},
98 (
char *)
"Get stdout JupyROOTExecutorHandler"},
100 (
char *)
"Get stderr JupyROOTExecutorHandler"},
102 (
char *)
"Destruct JupyROOTExecutorHandler"},
104 (
char *)
"Register a custom converter that is a reference to an existing converter"},
106 (
char *)
"Register a custom executor that is a reference to an existing executor"},
107 {NULL, NULL, 0, NULL}};
115#define GETSTATE(m) ((struct module_state *)PyModule_GetState(m))
129static struct PyModuleDef
moduledef = {PyModuleDef_HEAD_INIT,
"libROOTPythonizations", NULL,
140 gRootModule = PyModule_Create(&
moduledef);
148#if PY_VERSION_HEX < 0x03090000
149 PyEval_InitThreads();
161 Py_INCREF(gRootModule);
PyObject * JupyROOTExecutorHandler_Ctor(PyObject *, PyObject *)
PyObject * JupyROOTDeclarer(PyObject *, PyObject *args)
PyObject * JupyROOTExecutorHandler_GetStdout(PyObject *, PyObject *)
PyObject * JupyROOTExecutor(PyObject *, PyObject *args)
PyObject * JupyROOTExecutorHandler_EndCapture(PyObject *, PyObject *)
PyObject * JupyROOTExecutorHandler_Poll(PyObject *, PyObject *)
PyObject * JupyROOTExecutorHandler_Clear(PyObject *, PyObject *)
PyObject * JupyROOTExecutorHandler_GetStderr(PyObject *, PyObject *)
PyObject * JupyROOTExecutorHandler_InitCapture(PyObject *, PyObject *)
PyObject * JupyROOTExecutorHandler_Dtor(PyObject *, PyObject *)
static struct PyModuleDef moduledef
PyObject * PyInit_libROOTPythonizations()
Initialization of extension module libROOTPythonizations.
static int rootmodule_clear(PyObject *m)
static int rootmodule_traverse(PyObject *m, visitproc visit, void *arg)
static PyMethodDef gPyROOTMethods[]
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
static PyObject * InstallGUIEventInputHook(PyObject *self, PyObject *args)
Install a method hook for sending events to the GUI.
static PyObject * InitApplication(PyObject *self, PyObject *args)
Initialize an RPyROOTApplication.
static TInterpreter * Instance()
returns gInterpreter global
CPYCPPYY_EXTERN bool RegisterExecutorAlias(const std::string &name, const std::string &target)
PyObject * CreateScopeProxy(Cppyy::TCppScope_t, const unsigned flags=0)
CPYCPPYY_EXTERN bool RegisterConverterAlias(const std::string &name, const std::string &target)
PyObject * AddTObjectEqNePyz(PyObject *self, PyObject *args)
Add pythonization for equality and inequality operators in TObject.
PyObject * BranchPyz(PyObject *self, PyObject *args)
Add pythonization for TTree::Branch.
PyObject * AddCPPInstancePickling(PyObject *self, PyObject *args)
Set reduce attribute for CPPInstance objects.
PyObject * CPPInstanceExpand(PyObject *self, PyObject *args)
Deserialize pickled objects.
PyObject * AddTClassDynamicCastPyz(PyObject *self, PyObject *args)
Add pythonization for TClass::DynamicCast.
PyObject * RegisterExecutorAlias(PyObject *, PyObject *args)
PyObject * GetBranchAttr(PyObject *self, PyObject *args)
PyObject * RegisterConverterAlias(PyObject *, PyObject *args)
PyObject * AddPrettyPrintingPyz(PyObject *self, PyObject *args)
Add pretty printing pythonization.
static bool SetGlobalSignalPolicy(bool setProtected)