> I mean, it'd be nice to have something like: > > >>> try: > ... assert 0 == 1 > ... except AssertionError, e: > ... print e > ... > 0 == 1 Why do you want to do that? Usually, you use assertions for things you believe are necessarily true. For other situations, you usually throw some more pertinent exception. Alex.