aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts/script.py
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-19 04:58:36 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-19 04:58:36 +0000
commit6138980e885884ef96b726f695fb038e2b939935 (patch)
tree764c56a9a16e4175699ba9fd5cb45a9a3282fe46 /externals/grill/py/scripts/script.py
parent86ecf983a799e73b54a13616e5fda6b268c20e5e (diff)
- a bit more functions for the symbol type
- exporting symbol functions corrected argument passing to class methods updated for OSX adjust pd and py files for correct argument passing svn path=/trunk/; revision=2523
Diffstat (limited to 'externals/grill/py/scripts/script.py')
-rw-r--r--externals/grill/py/scripts/script.py5
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):