[long and fussy] But what do these operators _mean_?

Warren B. Focke moron at Glue.umd.edu
Thu Jul 20 22:20:11 EDT 2000


(Edward Jason Riedy):
>And then there are issues with complex.  -0.0j = -0j, but 
>complex(0.0,-0.0) = 0j.  And there seems to be no way to construct
>1-0j at all.  This is painful when you think about branch cuts

>>> complex(-1, 0) * -1
(1-0j)

but

>>> (complex(-1, 0) * -1) * 1
(1+0j)

and it's probably not portable anyway.

Warren Focke
-- 
If you feel that you have both feet planted on level ground, then the
university has failed you. -Robert Goheen, President, Princeton University



More information about the Python-list mailing list