I have a function that receives some arguments, plus some optional arguments. In it, the action taken is dependent upon whether the optional argument
def func(a, b, c = None):
if c != None:
FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if c is not None instead. In addition to avoiding the warning, this is generally considered best-practice.