On Mon, Jan 10, 2011 at 10:34 AM, Simon King <[email protected]> wrote:
> Is there a way to catch a deprecation warning (as one would catch an
> error)?

Nope, there's no way to catch it because there is no exception that is
actually thrown.

> Even stranger: When I catch the BaseException then the print statement
> is *not* executed.

This is only because it will just print the warning once.  If you run
this code in a new session, you'll see the deprecation warning.

--Mike

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to