“y if x is None else x” is more readable than “x ?? y”.
Since code is written once and read 100 times, it’s probably worth the extra typing.
“y if x is None else x” is more readable than “x ?? y”.
Since code is written once and read 100 times, it’s probably worth the extra typing.