Verifying assertion failures

Alex new_name at mit.edu
Sat May 19 13:14:07 EDT 2001


> but-that-still-leaves-being-able-to-catch-the-assertion-when-it-fails
> ly-yrs C

Can you give an example where you'd want to do that, rather than throw
an exception more pertinent to the failure?  I thought the point of
assertions was to halt the program when one of the assumptions your code
is relying on proves to be false.

Alex.




More information about the Python-list mailing list