Something ridiculous happened while handling complex numbers.
> complex(1,2)/complex(1,2)
(1+0j)
This one was nice, but...
>complex(15,22)/complex(15,22)
(1-5.51196762578357e-17j)
(WHAT?)
> a=complex(15,22)/complex(15,22)
> a.imag
-5.51196762578357e-17
> int(a.imag)==a.imag
False
Surely the imaginary part is not zero... Please try it on your own and witness this ironic situation.
One more example.
> print c
(74+33j)
> c/(1+10j)
(4-7.000000000000001j)
Of course, that -7.0000000000000000001
should have been -7
.