[PD-cvs] externals/grill/py/scripts sendrecv.py,1.4,1.5
Thomas Grill
xovo at users.sourceforge.net
Tue Jan 11 05:59:29 CET 2005
- Previous message: [PD-cvs] externals/grill/py/pd sendrecv-1.pd,1.2,1.3
- Next message: [PD-cvs] externals/grill/py/source pyprefix.h,NONE,1.1 pysymbol.cpp,NONE,1.1 pysymbol.h,NONE,1.1 bound.cpp,1.13,1.14 clmeth.cpp,1.12,1.13 main.cpp,1.20,1.21 main.h,1.27,1.28 modmeth.cpp,1.13,1.14 py.cpp,1.17,1.18 pyargs.cpp,1.10,1.11 pyext.cpp,1.24,1.25 pyext.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [PD-cvs] externals/grill/py/pd sendrecv-1.pd,1.2,1.3
- Next message: [PD-cvs] externals/grill/py/source pyprefix.h,NONE,1.1 pysymbol.cpp,NONE,1.1 pysymbol.h,NONE,1.1 bound.cpp,1.13,1.14 clmeth.cpp,1.12,1.13 main.cpp,1.20,1.21 main.h,1.27,1.28 modmeth.cpp,1.13,1.14 py.cpp,1.17,1.18 pyargs.cpp,1.10,1.11 pyext.cpp,1.24,1.25 pyext.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list