diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-13 04:59:47 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-13 04:59:47 +0000 |
commit | 3ce0fb7e8ad57909fadcd4072817d69bc54e3a66 (patch) | |
tree | f4d4478420cc9f34bf26835f2edc5bd03f95a86b /externals/grill/py/scripts/script.py | |
parent | 0e0bfeecb60ffa25d997830553685482c666b7ba (diff) |
pydsp: share dsp buffer objects at inplace operation
DSP support for py/pyext: new objects pyext~,pyx~,pyext.~,pyx.~
new base class for py and pyext classes
preset sys.argv for module loading
support for buffer objects (preliminary)
py: bang in left inlet now really triggers without arguments
fixes for detached operation and single-threaded version
little restructuring
adjust pd and py files for correct argument passing
more optimizations
update for new flext callback naming
use lock count instead of message queuing to avoid py->py messaging deadlock
pyext: fix for inlet count
svn path=/trunk/; revision=2624
Diffstat (limited to 'externals/grill/py/scripts/script.py')
-rw-r--r-- | externals/grill/py/scripts/script.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/externals/grill/py/scripts/script.py b/externals/grill/py/scripts/script.py index 88f7afd2..ff41730f 100644 --- a/externals/grill/py/scripts/script.py +++ b/externals/grill/py/scripts/script.py @@ -28,17 +28,11 @@ def strlen(arg): def strcat(*args): """Concatenate several symbols""" - s = "" - for si in args: - s += str(si) - return s - + return reduce(lambda a,b: a+str(b), args,"") def addall(*args): # variable argument list - s = 0 - for si in args: - s += si - return s + """Add a couple of numbers""" + return reduce(lambda a,b: a+b, args,0) def ret1(): |