why no arg, abs methods for comlex type?

Daniel Schüle uval at rz.uni-karlsruhe.de
Sat Aug 6 08:21:09 EDT 2005


[...]

> <shrug> Okay. Write a patch. Personally, I would prefer that it be a 
> function in cmath rather than a method because then it could be made to 
> work on integers and regular floats, too.

Ok, but what semantic should angle/arg have, say for 3 respectively
for 3.0?
the same as for arg(3+0j)?



More information about the Python-list mailing list