Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> writes:

> if not (a is b is None): ...
>
> Or if you prefer:
>
> if a is not b is not None: ...

>>> 1 is not 1 is not None
False

So definitely the former!

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  |                 -- Fortunato Depero, 1929.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to