• Raymond Hettinger's avatar
    * Fix error in definition of Im() which returned self instead of 0 · bdaad8c9
    Raymond Hettinger yazdı
      for non-complex arguments.
    
    * Replace type() comparisons with isinstance() checks.
    
    * Replace apply() calls with equivalent syntactic form.
    
    * Simplify __hash__ definition to hash the underlying tuple.
    
    * Use math.hypot() for more robust computation of __abs__().
    
    * Use sorted() instead of the multi-step keys/sort/iter.
    
    * Update comment on the cmath module.
    bdaad8c9
Complex.py 9.72 KB