Exception as the primary error handling mechanism?
Dave Angel
davea at ieee.org
Tue Jan 5 06:59:59 EST 2010
r0g wrote:
> <snip>
>
> Maybe, although I recently learned on here that one can't rely on assert
> statements in production code, their intended use is to aid debugging
> and testing really.
>
>
Hopefully, what you learned is that you can't use assert() in production
code to validate user data. It's fine to use it to validate program
logic, because that shouldn't still need testing in production.
<snip>
DaveA
More information about the Python-list
mailing list