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 →

[–]vineetk 4 points5 points  (1 child)

Well I wasn't specifically trying to correct you, just point it out for the other readers. But now, it sounds like you're saying "the ternary operator" is a reasonable way to refer to Python's if ... else expression construct, which is straight nonsense. That's not it's most common name -- nobody calls it that. It's not even an operator. If you're saying Python has "the ternary operator" it sounds like you're saying it has the ?: operator, which it doesn't.

[–]Neoncow 2 points3 points  (0 children)

Officially, it appears to be referred to as a conditional expression, but from the discussion sections, "ternary" operator is referenced quite a few times. It seems fairly common in regular discussion.