If you wanted to write a conditional to check whether both a and b are None or neither are None, would you use comparison chaining for either condition, both conditions, or neither?
Chaining:
if a is b is None:
…
if a is not None is not b:
…
Non-chaining:
if a is None and b is None:
…
if a is not None and b is not None:
…
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.