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