[Python-checkins] python/dist/src/Objects complexobject.c,2.63,2.64
Raymond Hettinger
python@rcn.com
Thu, 29 Aug 2002 15:05:54 -0400
From: "Guido van Rossum" <guido@python.org>
> > I think this should be backported but am not certain.
> >
> > > complex() was the only numeric constructor that created a new instance
> > > when given its own type as an argument.
>
> Hm, it seems a very minor efficiency hack at best. For immutable
> objects, object identity is generally an optimization only and
> programs should never depend on it.
Agreed. I was more concerned that what works for one numeric type,
works for them all.
Since it's not a bug and you're not awestruck, backporting is out.