aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/pyargs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/py/source/pyargs.cpp')
-rw-r--r--externals/grill/py/source/pyargs.cpp5
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);