Comment Comment by cpburns2009 For all of the syntax features Python has been adding over the years, this would be a nice enhancement: making the "else None" optional in the ternary if-expression. E.g., spam = eggs if bar # vs spam = eggs if bar else None parent cpburns2009 2 years ago