News for hackers. Stuff that matters.
Re:Upcoming Python features brought to you by Python Enhance... by mrtranscendence on Monday February 14, 2022 @10:15AM (#30332967)
Having the default value be None isn't great for documentation, and it isn't great for static typing, because now your argument has to be of type Union[Foo, None]. I've written functions where there are reasonably long chains of stuff like

if foo is None:

    foo = []
and it'd be nice to be done with that.
Re:Upcoming Python features brought to you by Python Enhance... by monkeybutton on Monday February 14, 2022 @10:20AM (#30333044)
I see what you're saying about typing. As for the reasonably long chains of default initialization code. Well now its in the definition. You could have functions with more code defining the parameters than in body.