Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

In such case I prefer to write

    assert not 'reachable'

It is shorter than writing False.

If I want to keep an exception even with -O, I write

    raise AssertionError

----------

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

Reply via email to