In message <[EMAIL PROTECTED]>, Fredrik
Lundh wrote:
> Python doesn't really have constructors; when you create an object,
> Python first creates the object and then calls the __init__ method, if
> available
That's the usual meaning of "constructor". It doesn't actually "construct"
the object, it
Fredrik Lundh wrote:
Catherine Heathcote wrote:
If I create a new class inherited from another with a constructor, what
happens with the new class's constructer?
Python doesn't really have constructors; when you create an object,
Python first creates the object and then calls the __init__ meth
Catherine Heathcote wrote:
If I create a new class inherited from another with a constructor, what
happens with the new class's constructer?
assuming that you mean "is it called or not?":
Python doesn't really have constructors; when you create an object,
Python first creates the object and
On Jul 22, 12:26 pm, Catherine Heathcote
<[EMAIL PROTECTED]> wrote:
> If I create a new class inherited from another with a constructor, what
> happens with the new class's constructer?
> Thanks for your time.
Well, the __init__ method of the subclass is called, and from within
it you can call the
On Tue, 22 Jul 2008 09:35:58 -0700, Matimus wrote:
> On Jul 22, 9:26 am, Catherine Heathcote
> <[EMAIL PROTECTED]> wrote:
>> If I create a new class inherited from another with a constructor, what
>> happens with the new class's constructer?
>> Thanks for your time.
>
> Nothing, unless you call i
On Jul 22, 9:26 am, Catherine Heathcote
<[EMAIL PROTECTED]> wrote:
> If I create a new class inherited from another with a constructor, what
> happens with the new class's constructer?
> Thanks for your time.
Nothing, unless you call it in your constructor.
class Base(object):
def __init__(self)
If I create a new class inherited from another with a constructor, what
happens with the new class's constructer?
Thanks for your time.
--
http://mail.python.org/mailman/listinfo/python-list