News for hackers. Stuff that matters.
Re:Strict Python function parameters by computerfriend on Sunday January 23, 2022 @01:11PM (#30048616)
You can do

    def foo(bar=None):
        bar = bar or Bar()
if you know that bar can't evaluate to false in edge cases.

There are no comments on this comment yet.