commit | bdaad8c93978b22fca49cb4eeea8cdea3610bafd | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Apr 09 14:55:07 2005 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Apr 09 14:55:07 2005 +0000 |
tree | e19d9b88529db76b747591e09d7979e69af89875 | |
parent | ab9ec1654fa20f2217758e43da8201f4520d8914 [diff] |
* Fix error in definition of Im() which returned self instead of 0 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.