I have a Python script in which I have an assert. The assert is always true; that's why I'm asserting it. The assert is a canary in case I change a constant in one place without changing code that depends on it having that value.
Python 3 gives me a warning that the assertion is always true. That's annoying. Can I turn the warning off?
/path/toplevel.py:10: SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert(VID_V_ACTIVE == 144, "constant different from expected")
@mcc the parentheses means you're asserting that the tuple is not false, which is trivial and not what you want
@Pashhur jeepers i'm glad i asked then
@flyingsaceur @rotopenguin @tess @mcc @Pashhur I kinda do
@falken how familiar are you with the Zope Wars, exactly?