Re: Other Python syntax changes

Guido van Rossum (guido@cwi.nl)
Tue, 10 Dec 91 11:28:39 +0100

Assertions can easily be done without changes to the language, e.g. by
writing a function like this:

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