checking if two things do not equal None

Abe contact.trigon at gmail.com
Mon Mar 31 19:28:00 CEST 2014


> I couldn't see anyone else give this, but I like
> if None not in (a, b):

I did.

> I am now considering:

> if None not in (a,b):
> or
> if (a is not None) and (b is not None):

However, I decided to just turn the two parameters into one (sequence), since they were logically grouped anyhow.





More information about the Python-list mailing list