Here is a piece of code:
if resp.email is None or resp.email == "":
I think the following is clearer:
if not resp.email:
Does the first option have any advantage to the second one?
My main concern about the second option is the possibility of hiding bugs if resp.email is False or "". Isn't this a very real scenario in production code?
Is there a widely accepted standard or convention on this matter?