Type subclassing: bug or feature
Gustavo Cordova
gcordova at hebmex.com
Fri Jun 14 12:00:46 EDT 2002
>
> * Gustavo Cordova <gcordova at hebmex.com> [2002-06-13 16:18 -0500]:
> > maybe all methods of builtin types should do:
> >
> > return self.__class__(return_value)
> >
> > when returning a new object (like str methods).
>
> Looks like a waste of performance in about 99 % of the time.
> Hopefully,
> this can be optimized at the C level.
>
> Gerhard
>
Well, it *was* supposed to be pseudo-code, I'm sure
that at the C level it can be done in a much more
efficient way, without having to resort to Python code.
:-P
:-)
-gustavo
pd: TGIF!!
More information about the Python-list
mailing list