discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Booting a new USRP


From: Matt Ettus
Subject: Re: [Discuss-gnuradio] Booting a new USRP
Date: Sat, 19 Feb 2005 08:59:57 -0800
User-agent: Internet Messaging Program (IMP) 4.0-cvs

Quoting John Gilmore <address@hidden>:


> In general I wonder -- is it the practice in Python to have "includes"
> run off and do things that could cause errors?  I'm used to more static
> languages where if you import a library, it just lays there until you call
> it.   :-)   That way, you can parse your arguments and produce your error
> messages, and maybe never even call that included package, depending on
> the options you were passed.

You can put the import statements in a try block so that you can gracefully
handle exceptions.  For some reason, nobody ever seems to do this, but I did it
in some of the early SDR-1000 code I checked in.

Matt




reply via email to

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