Python equivalent for MySQL's IFNULL
<p>Is there a function in Python that checks if the returned value is None and if it is, allows you to set it to another value like the <code>IFNULL</code> function in MySQL? </p>
