[issue5001] Remove assertion-based checking in multiprocessing

Vlad Riscutia report at bugs.python.org
Sun Oct 2 22:43:50 CEST 2011


Vlad Riscutia <riscutiavlad at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5001>
_______________________________________


More information about the Python-bugs-list mailing list