Why assert is not a function?
Mirko
mirkok.lists at googlemail.com
Tue Mar 2 18:20:52 EST 2021
Am 02.03.2021 um 23:09 schrieb Stestagg:
> Ignoring the question about this feature being particularly useful, it
It is useful because "assert" is primarily (if not purely and
exclusive) a debugging tool during development and testing.
In production code you don't want any asserts, but logging. Having
"assert" being a function would make it much harder to get rid of it
in production code.
More information about the Python-list
mailing list