From 29416a643b9c3d19a60b91b37a263d300c11486b Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 9 Jul 2005 13:03:34 +0000 Subject: python-like dotted module.function syntax reworked outbound message generation (now with symbols instead of one-element anythings) multiply inlets for py (hot and cold inlets) cleaned up float vs. int pyext tags pymeth object for object methods enable built-in functions sequence protocol for symbol type enabled built-in functions py: allow all callables svn path=/trunk/; revision=3310 --- externals/grill/py/source/pybase.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'externals/grill/py/source/pybase.h') diff --git a/externals/grill/py/source/pybase.h b/externals/grill/py/source/pybase.h index ea5f6b49..068aeb86 100644 --- a/externals/grill/py/source/pybase.h +++ b/externals/grill/py/source/pybase.h @@ -26,8 +26,8 @@ public: static PyObject *MakePyArgs(const t_symbol *s,int argc,const t_atom *argv,int inlet = -1); static PyObject *MakePyArg(const t_symbol *s,int argc,const t_atom *argv); - static bool GetPyArgs(AtomList &lst,PyObject *pValue,int offs = 0); - static bool GetPyAtom(AtomList &lst,PyObject *pValue); + static const t_symbol *GetPyArgs(AtomList &lst,PyObject *pValue,int offs = 0); + static const t_symbol *GetPyAtom(AtomList &lst,PyObject *pValue); static void lib_setup(); @@ -94,6 +94,7 @@ protected: // --- module stuff ----- static PyObject *module_obj,*module_dict; + static PyObject *builtins_obj,*builtins_dict; static PyMethodDef func_tbl[]; static PyObject *py__doc__(PyObject *,PyObject *args); @@ -161,6 +162,8 @@ protected: static PyThreadState *FindThreadState() { return NULL; } #endif + static const t_symbol *sym_fint; // float or int symbol, depending on native number message type + public: #ifdef FLEXT_THREADS -- cgit v1.2.1