You must log in or register to comment.
TL;DR
Python optimizes “assert” statements out with
-O
orPYTHONOPTIMIZE
set and some users seem to use it for stuff critical in production instead of raising cheaper Exceptions.
TL;DR
Python optimizes “assert” statements out with -O
or PYTHONOPTIMIZE
set and some users seem to use it for stuff critical in production instead of raising cheaper Exceptions.