why no arg, abs methods for comlex type?
tiissa
tiissa at nonfree.fr
Sat Aug 6 08:37:05 EDT 2005
Daniel Schüle wrote:
>> <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)?
As a potential user, that's what I would expect.
See Dan Bishop's implementation (earlier in this thread).
More information about the Python-list
mailing list