def assert(test):
if not test: raise <some exception>
I suppose this can be made into a standard module, complete with its
own exception, if there's enough demand (on the other hand, it's
trivial enough that interested parties can write it themselves).
--Guido