Update of /cvsroot/pure-data/externals/grill/py/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24330/scripts
Modified Files: sendrecv.py Log Message: added symbol type fixed incorrect unbinding of instance methods fixes for symbol type little restructuring
Index: sendrecv.py =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/scripts/sendrecv.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sendrecv.py 20 Oct 2003 02:38:10 -0000 1.4 --- sendrecv.py 11 Jan 2005 04:59:26 -0000 1.5 *************** *** 44,48 ****
# no inlets and outlets ! _inlets=0 _outlets=0
--- 44,48 ----
# no inlets and outlets ! _inlets=1 _outlets=0
*************** *** 67,85 **** if len(args) >= 2: self.sendname = args[1]
# bind functions to receiver names # both are called upon message self._bind(self.recvname,self.recv) self._bind(self.recvname,recv_gl) !
def __del__(self): """Class destructor"""
- # you can but you don't need to # unbinding is automatically done at destruction - # you can also comment out the _unbind lines - self._unbind(self.recvname,self.recv) - self._unbind(self.recvname,recv_gl) - pass
--- 67,86 ---- if len(args) >= 2: self.sendname = args[1]
+ self.bind_1() + + def bind_1(self): # bind functions to receiver names # both are called upon message self._bind(self.recvname,self.recv) self._bind(self.recvname,recv_gl) ! ! def unbind_1(self): ! self._unbind(self.recvname,self.recv) ! self._unbind(self.recvname,recv_gl)
def __del__(self): """Class destructor"""
# unbinding is automatically done at destruction pass