|
|
|
|
|
by cpburns2009
608 days ago
|
|
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
|
|