You could also use the "assert" statement:

>>> if foo and bar:
...     assert i <= 10, "if foo and bar then i must not be greater than
10"
...

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to