Vlad Riscutia <riscutiav...@gmail.com> added the comment:

I attached a patch which replaces all asserts with checks that raise 
exceptions. I used my judgement in determining exception types but I might have 
been off in some places. Also, this patch replaces ALL asserts. It is possible 
that some of the internal functions should be kept using asserts but I am not 
familiar enough with the module to say which. I figured I'd better do the whole 
thing than reviewers can say where lines should be reverted to asserts.

----------
keywords: +patch
nosy: +vladris
Added file: http://bugs.python.org/file23298/issue5001.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to