[PYTHON-CRYPTO] not pseudo code anymore!

Jeremy Hylton jeremy at alum.mit.edu
Sat Feb 17 00:41:26 CET 2001


Asserts should not be used for typechecking.  They are intended for
internal application sanity checking.  If a library raises an
assertion error, there is a bug in the library.  If there is a problem
with user code, e.g. the wrong arguments, the user should get an
exception like TypeError or ValueError.

Jeremy





More information about the python-crypto mailing list