From 6138980e885884ef96b726f695fb038e2b939935 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 19 Jan 2005 04:58:36 +0000 Subject: - 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 --- externals/grill/py/scripts/script.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'externals/grill/py/scripts/script.py') 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): -- cgit v1.2.1