The best Python feature you cannot usecopacetic@discuss.tchncs.de to General Programming Discussion@lemmy.ml – 3 points – 1 years agobitecode.dev1Post a CommentPreviewHotTopNewOldTL;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.
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.
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.