News for hackers. Stuff that matters.
Re:What's New in Python 3.12 by ziml77 on Wednesday October 18, 2023 @05:29PM (#37935034)

    > python3 -c 'print(None or "hello")'
    hello
It evaluates to the left if that's truthy otherwise it evaluates to the right, similar to how `??` evaluates to the left if that's non-null otherwise the right.

In C# even if `||` automatically coerced the types, the output will always be a bool.

There are no comments on this comment yet.