j
k
j a
j l
On Sat, 15 Jul 2023 at 21:09, Dom Grigonis <dom.grigonis@gmail.com> wrote:
So I would vote for something similar to: result = bar is None ? default : bar
So I would vote for something similar to:
result = bar is None ? default : bar
result = default if bar is None else bar Python has a conditional expression already. Paul
Attachments:
Back to the thread
Back to the list