IMO, "not None" is more precise and explicit, not less complete. If fetchone returns an empty list, it is violating its contract (http://www.python.org/dev/peps/pep-0249/), and that should be treated as an error, not as though there were no results.
« Back to merge proposal
IMO, "not None" is more precise and explicit, not less complete. If fetchone returns an empty list, it is violating its contract (http:// www.python. org/dev/ peps/pep- 0249/), and that should be treated as an error, not as though there were no results.