[Python-checkins] python/dist/src/Objects complexobject.c,2.63,2.64

Guido van Rossum guido@python.org
Thu, 29 Aug 2002 14:56:09 -0400


> 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.

--Guido van Rossum (home page: http://www.python.org/~guido/)