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/sendrecv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'externals/grill/py/scripts/sendrecv.py') diff --git a/externals/grill/py/scripts/sendrecv.py b/externals/grill/py/scripts/sendrecv.py index e3295ab6..a8b57469 100644 --- a/externals/grill/py/scripts/sendrecv.py +++ b/externals/grill/py/scripts/sendrecv.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. # @@ -49,7 +49,7 @@ class ex1(pyext._class): recvname="" sendname="" - def recv(self,arg): + def recv(self,*arg): """This is a class-local receive function, which has access to class members.""" # print some stuff @@ -59,7 +59,7 @@ class ex1(pyext._class): self._send(self.sendname,arg) - def __init__(self,args): + def __init__(self,*args): """Class constructor""" # store sender/receiver names @@ -100,7 +100,7 @@ class ex2(pyext._class): recvname="" - def recv(self,arg): + def recv(self,*arg): """This is a class-local receive function""" # send received data to outlet -- cgit v1.2.1