Re: [Discuss-gnuradio] code clarification in usrp.py

2005-08-15 Thread Eric Blossom
On Sun, Aug 14, 2005 at 06:30:06PM -0700, Ges wrote: > Hi Eric, > > I would like to clarify this stub of code found in > usrp.py: > > def source_c(which, *args, **kwargs): > return ((usrp0.source_c, usrp1.source_c)[look_for_usrp(which)])(which, > *args, **kwargs) > > when some creates an ob

[Discuss-gnuradio] code clarification in usrp.py

2005-08-14 Thread Ges
Hi Eric, I would like to clarify this stub of code found in usrp.py: def source_c(which, *args, **kwargs): return ((usrp0.source_c, usrp1.source_c)[look_for_usrp(which)])(which, *args, **kwargs) when some creates an object usrp.source_c(...) then this function gets called, which calls the l