Superclass initialization

Arnaud Delobelle arnodel at googlemail.com
Fri Apr 24 10:53:48 EDT 2009


On Apr 24, 3:46 pm, Ole Streicher <ole-usenet-s... at gmx.net> wrote:
> Arnaud Delobelle <arno... at googlemail.com> writes:
> > numpy.ndarray has a __new__ method (and no __init__).  I guess this is
> > the one you should override.  Try:
>
> What is the difference?
>
> best regards
>
> Ole

Here's an explanation.

    http://www.python.org/download/releases/2.2.3/descrintro/#__new__

--
Arnaud



More information about the Python-list mailing list