this post was submitted on 18 Jun 2023
3 points (100.0% liked)
General Programming Discussion
7803 readers
1 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.