diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-07-30 12:22:11 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-07-30 12:22:11 +0000 |
commit | 9b39e0d94c73773d0dc4b11d9355798d941921e8 (patch) | |
tree | d9c2f3fad3974394cb184868282a8b6366c0fb8e /externals/grill/py/source/pyargs.cpp | |
parent | 5f9f3ed9b7c2ff07d8745c81d1a085c8eaa08737 (diff) |
corrected Python object propagation (attribute "py") and adjusted help files
path setting based on new flext functionality
much better detach method handling (one thread for all object instances)
svn path=/trunk/; revision=3389
Diffstat (limited to 'externals/grill/py/source/pyargs.cpp')
-rw-r--r-- | externals/grill/py/source/pyargs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/externals/grill/py/source/pyargs.cpp b/externals/grill/py/source/pyargs.cpp index d631903b..511baf2f 100644 --- a/externals/grill/py/source/pyargs.cpp +++ b/externals/grill/py/source/pyargs.cpp @@ -179,7 +179,10 @@ const t_symbol *pybase::GetPyArgs(AtomList &lst,PyObject *pValue,int offs) const t_symbol *sym = NULL; if(isseq(pValue)) { - int rargc = PySequence_Size(pValue); + // Python might crash here if pValue is no "real" sequence, but rather e.g. an instance + + int rargc = PySequence_Size(pValue); + if(rargc == 2) { // check if syntax is symbol/string, list -> anything message PyObject *s = PySequence_GetItem(pValue,0); |