Hi all,

I'm commonly using function signatures like

   def myfunc(a, b, c=None):
       if c is None:
           # do something ...
       ...

where c is an optional array argument.  For some time now, I'm getting a

   FutureWarning: comparison to `None` will result in an elementwise
   object comparison in the future

from the "c is None" comparison.  I'm wondering what would be the best
way to do this check in a future-proof way?

Best,
-- Andreas.
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to