On Feb 16, 2017, at 03:20 PM, M.-A. Lemburg wrote:

>I know some people will disagree, but IMO using "assert" is the wrong
>approach in such situations - it's meant for development and testing
>only, not as short-cut to avoid having to write a proper error
>handler :-)

I use assertions for "things that can never happen", although sometimes they
do due to an incomplete understanding of the code, the problem, or the
environment.

Cheers,
-Barry

Attachment: pgpJ1sOAxhaoc.pgp
Description: OpenPGP digital signature

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to