17 May
2020
17 May
'20
3:20 p.m.
On Mon, May 18, 2020 at 8:04 AM Richard Damon
If you really what what you describe, add the following to your code:
if not __debug__:
raise AssertionError, "Please don't disable assertions"
(This won't enable the assertions, but will let the user know that you need them enabled)
As a bonus that also asserts that you're running an ancient version of Python.... probably not what you want :) if not __debug__: raise AssertionError("Assertions are required for this module, because it is broken.") ChrisA