diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
commit | 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch) | |
tree | 5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/py/scripts/script.py | |
parent | bb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff) |
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/py/scripts/script.py')
-rw-r--r-- | externals/grill/py/scripts/script.py | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/externals/grill/py/scripts/script.py b/externals/grill/py/scripts/script.py deleted file mode 100644 index ff41730f..00000000 --- a/externals/grill/py/scripts/script.py +++ /dev/null @@ -1,48 +0,0 @@ -# py/pyext - python script objects for PD and MaxMSP -# -# 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. -# - -"""Several functions to show the py script functionality""" - -import sys - -print "Script initialized" - -try: - print "Script arguments: ",sys.argv -except: - print - -def numargs(*args): # variable argument list - """Return the number of arguments""" - return len(args) - -def strlen(arg): - """Return the string length""" - # we must convert to string first (it's a symbol type most likely) - return len(str(arg)) - - -def strcat(*args): - """Concatenate several symbols""" - return reduce(lambda a,b: a+str(b), args,"") - -def addall(*args): # variable argument list - """Add a couple of numbers""" - return reduce(lambda a,b: a+b, args,0) - - -def ret1(): - return 1,2,3,4 - - -def ret2(): - return "sd","lk","ki" - - -def ret3(): - return ["sd","lk","ki"] - |