
July 20, 2023
4:11 a.m.
On 20/07/23 6:30 pm, James Addison via Python-ideas wrote:
result = default if bar is None else bar or if you prefer result = bar if bar is not None else default
Would it shut anyone up if we had another logical operator: x otherwise y equivalent to x if x is not None else y ? -- Greg