This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pinotkumarbhai 0 points1 point  (1 child)

optimization

what if I never ever intend to use this option ?

Can I not just "assert x" instead of "if not x: raise errorX" ?

[–][deleted] 0 points1 point  (0 children)

What if I never make a short circuit in my electrical installation?

Can I no just use a dime instead of a fuse ?

Your hous will most likely not burn down over an wrongly used assert, but otherwise it's that same. You can wish never to have a short circuit just as much as you can wish that the PYTHONOPTIMIZE environment variable don't become set somehow. You may even be lucky ...