+ 2
Assertions are not Python code, per se. They control the debugger/unit tests, which would say that an assertion passed or failed. From searching... it seems like they're used in sanity checks like: this is a multiprocessor system, or this code only works on android, or certain kernel levels with libraries >= required versions, that floats have acceptable precision or endianness is correct, etc.
22nd Oct 2016, 6:50 AM
Kirk Schafer
Kirk Schafer - avatar