diff options
Diffstat (limited to 'externals/grill/py/scripts/script.py')
-rw-r--r-- | externals/grill/py/scripts/script.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/externals/grill/py/scripts/script.py b/externals/grill/py/scripts/script.py index b4741b00..88f7afd2 100644 --- a/externals/grill/py/scripts/script.py +++ b/externals/grill/py/scripts/script.py @@ -1,6 +1,6 @@ # py/pyext - python script objects for PD and MaxMSP # -# Copyright (c) 2002-2003 Thomas Grill (xovo@gmx.net) +# Copyright (c) 2002-2005 Thomas Grill (gr@grrrr.org) # For information on usage and redistribution, and for a DISCLAIMER OF ALL # WARRANTIES, see the file, "license.txt," in this distribution. # @@ -22,7 +22,8 @@ def numargs(*args): # variable argument list def strlen(arg): """Return the string length""" - return len(arg) + # we must convert to string first (it's a symbol type most likely) + return len(str(arg)) def strcat(*args): |