You must log in or # to comment.
TL;DR
Python optimizes “assert” statements out with
-OorPYTHONOPTIMIZEset 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.