Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually laughed when I read that. This one got me, too. The casual validation of its paranoia gives me Marvin the Paranoid Android vibes.

  try:
      result = a / b
      if math.isnan(result):
          raise ArithmeticError("Result is NaN. I knew this would happen.")


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: