Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



When you pass a tuple as the first argument in an assert statement, the assertion always evaluates as true and therefore never fails.
If you want to change selection, open document below and click on "Move attachment"

Assert Statements in Python – dbader.org
valuate to true. I’ve been bitten by this myself in the past. I wrote a longer article about this specific issue you can check out by clicking here. Alternatively, here’s the executive summary: <span>When you pass a tuple as the first argument in an assert statement, the assertion always evaluates as true and therefore never fails. For example, this assertion will never fail: assert(1 == 2, 'This should fail') This has to do with non-empty tuples always being truthy in Python. If you pass a tuple to an assert stat


Summary

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.