The best Python feature you cannot use

copacetic@discuss.tchncs.de to General Programming Discussion@lemmy.ml – 3 points –
The best Python feature you cannot use
bitecode.dev
1

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.