commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r8598 - grc/trunk/src/grc_gnuradio/usrp


From: jblum
Subject: [Commit-gnuradio] r8598 - grc/trunk/src/grc_gnuradio/usrp
Date: Tue, 17 Jun 2008 13:16:52 -0600 (MDT)

Author: jblum
Date: 2008-06-17 13:16:45 -0600 (Tue, 17 Jun 2008)
New Revision: 8598

Modified:
   grc/trunk/src/grc_gnuradio/usrp/simple_usrp.py
Log:
__del__ method for usrp object

Modified: grc/trunk/src/grc_gnuradio/usrp/simple_usrp.py
===================================================================
--- grc/trunk/src/grc_gnuradio/usrp/simple_usrp.py      2008-06-17 03:39:35 UTC 
(rev 8597)
+++ grc/trunk/src/grc_gnuradio/usrp/simple_usrp.py      2008-06-17 19:16:45 UTC 
(rev 8598)
@@ -111,6 +111,12 @@
                self._u = u
                self._subdev = subdev
                self._which = which
+               
+       def __del__(self):
+               """!
+               Call delete on the usrp object.
+               """
+               del self._u
        
        def get_u(self):
                """!
@@ -240,6 +246,12 @@
                self._which_a = which_a
                self._which_b = which_b
        
+       def __del__(self):
+               """!
+               Call delete on the usrp object.
+               """
+               del self._u
+       
        def get_u(self):
                """!
                Get the underlying usrp object.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]