20 Jul
2023
20 Jul
'23
8:23 a.m.
On Thu, 20 Jul 2023 at 18:16, Greg Ewing <gcewing@snap.net.nz> wrote:
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
?