[Python-Dev] Re: [Python-checkins] python/dist/src/Objects
Mon, 15 Apr 2002 11:20:28 -0400 (EDT)
On Mon, 15 Apr 2002, Guido van Rossum wrote:
>> Does it make sense to deprecate divmod() and // for complex numbers while
>> leaving % intact?
>It doesn't, and I've repaired this.
>However, I'm wondering what to do after we unify all numeric types
>(*if* we ever decide to do that, which isn't clear). At that point,
>should these operators be allowed as long as the imaginary part is
I wasn't aware that complex numbers were part of the grand unification plan,
but of course it makes a lot of sense. It then seems fairly obvious to me
that treating a number with zero imaginary part differently than a number
with no imaginary part would surprise a lot of people.
+1 on allowing these operators to continue to work
on complex numbers with a zero imaginary part.