aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/modmeth.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-07-09 13:03:34 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-07-09 13:03:34 +0000
commit29416a643b9c3d19a60b91b37a263d300c11486b (patch)
treedd28d4b6c6a6e4229de8c5e8ae76f4686df935c6 /externals/grill/py/source/modmeth.cpp
parent897b80c5585f7c9031ff1aafb504c21a9d3b1606 (diff)
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
Diffstat (limited to 'externals/grill/py/source/modmeth.cpp')
-rw-r--r--externals/grill/py/source/modmeth.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/externals/grill/py/source/modmeth.cpp b/externals/grill/py/source/modmeth.cpp
index d56441ac..44299b0c 100644
--- a/externals/grill/py/source/modmeth.cpp
+++ b/externals/grill/py/source/modmeth.cpp
@@ -128,13 +128,9 @@ PyObject *pybase::py_send(PyObject *,PyObject *args)
val = PySequence_GetSlice(args,1,sz); // new ref
AtomListStatic<16> lst;
- if(GetPyArgs(lst,val)) {
- bool ok;
- if(lst.Count() && IsSymbol(lst[0]))
- ok = Forward(recv,GetSymbol(lst[0]),lst.Count()-1,lst.Atoms()+1);
- else
- ok = Forward(recv,lst);
-
+ const t_symbol *sym = GetPyArgs(lst,val);
+ if(sym) {
+ bool ok = Forward(recv,sym,lst.Count(),lst.Atoms());
#ifdef FLEXT_DEBUG
if(!ok)
post("py/pyext - Receiver doesn't exist");