• heeplr@feddit.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    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.