[Numpy-discussion] question about optimizing

Charles R Harris charlesr.harris@gmail....
Sat May 17 15:28:08 CDT 2008


On Sat, May 17, 2008 at 2:25 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On Sat, May 17, 2008 at 3:18 PM, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> > Base classes also tend to have limited functionality that will be common
> to
> > all derived types. The object type in Python has only a few methods and
> > attributes:
> >
> > In [4]: dir(object)
> > Out[4]:
> > ['__class__',
> >  '__delattr__',
> >  '__doc__',
> >  '__getattribute__',
> >  '__hash__',
> >  '__init__',
> >  '__new__',
> >  '__reduce__',
> >  '__reduce_ex__',
> >  '__repr__',
> >  '__setattr__',
> >  '__str__']
> >
> > And overloading any of these is likely to cause trouble.
>
> Nonsense. *Most* of those are intended to be overloaded. Especially on
> object.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080517/2dedb72a/attachment.html 


More information about the Numpy-discussion mailing list