News for hackers. Stuff that matters.
Re:New Ways to Be Told That Your Python Code Is Bad by nirs on Friday September 03, 2021 @02:36AM (#28401077)
Theses are good examples for not using ternary expressions. The code looks wrong even if it is correct, and it is hard to follow.

There is a very simple rule avoiding most of these issues - if the ternary expression does not fit in one line, use if/else.

There are no comments on this comment yet.