The answer should be very easy and should have been answer already, but I cannot find it.
() is None # False
(None) is None # True
(None, None) is None # False
Results of all of these checks are kind of expected, but altogether looks strange. So to questions:
- Why is
(None) is None
- is it because of unpacking? - Why then
() is not None
? I.e. if(None)
is alreadyNone
why()
is not?