title: Numpy zero-division in try-except block, which raises "RuntimeWarning: invalid value encountered in double_scalars" and strange results
body: <p>Code</p>
  
  <pre><code>s = np.zeros(2)
  try:
      a = s[0]/s[1]
  except:
      a = 10.0
  print(a)
  </code></pre>
  
  <p>raises warning as mentioned in the title of the question and prints nan. It's rather strange, isn't it? How can it be explained and corrected?</p>