New Ways to Be Told That Your Python Code Is Bad
&gt; Python programmers in general have an irrational aversion to if-expressions, a.k.a. the “ternary” operator.<p>Because the Python ternary operator is fucking backwards! Why on earth would you put the condition in the <i>middle</i>!?<p><pre><code>  x = 4 if condition() else 5
</code></pre>
vs.:<p><pre><code>  condition() ? 4 : 5
</code></pre>
vs. the author&#x27;s own lisp example:<p><pre><code>  (setq x (if (condition) 4 5))
</code></pre>
I love ternary operators, and Lisp&#x2F;ML-style if else blocks that return things, but Python puts the 4 and the 5 so far away from each other that even I hate using it, especially when condition is a chained mess rather than just a function call.