title: In Python, how to override the arithmetic operator "/" to produce: 1 / 0 => math.inf?
body: <p>In Python, when I run the operation: 1 / 0, its default behavior is generating an exception: &quot;ZeroDivisionError: float division by zero&quot;</p>
  <p>How to overload this default behavior so that I can get:
  1 / 0 =&gt; math.inf</p>