[Python-ideas] Proposal for an inplace else (?=) operator

Michael Selik mike at selik.org
Sat Sep 22 21:56:25 EDT 2018


On Sat, Sep 22, 2018 at 4:53 AM Lee Braiden <leebraid at gmail.com> wrote:
> Problem: [Python] prevents actual default argument values being set in a function signature
> Feedback would be much appreciated.

You'd be more convincing if you stated the problem more precisely.
Python supports default values for function arguments. Regardless,
I'll echo the discussion of the None-aware operators PEP: it's quite
simple to write ``if arg is None: arg = ...`` in the function body. I
don't find the use case compelling.


More information about the Python-ideas mailing list