multiple inharitance super() question

2005-11-14 Thread Alex Greif
Hi,

Before 2.2 I could initialize multiple super classes like this:
class B(A,AA):
def __init__(self, args):
A.__init__(self,args)
AA.__init__(self,args)

Tutorials say that since python 2.2 superclasses should be initialized
with the super() construct.

class A(object):
def __init__(self, args):
...

class B(A):
def __init__(self, args):
super(B, self).__init__(args)


BUT what happens if B extends from A and AA like:

class A(object):
def __init__(self, args):
...

class AA(object):
def __init__(self, args):
...

class B(A,AA):
def __init__(self, args):
super(B, self).__init__(args)


How can I tell that B.__init__() should initialize A and AA?
Or is the new super() so clever to call A.__init__() and AA.__init__()
internally?

thanks,
Alex Greif



http://www.fotobuch-xxl.de/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: want some python ide

2005-11-14 Thread alex . greif
Hi,
look for SciTE
http://www.scintilla.org/SciTE.html

it is small, fast and lightweight

Alex Greif

http://www.fotobuch-xxl.de/


D H wrote:
> [EMAIL PROTECTED] wrote:
> > i want some python ide use pygtk
> > eric3 is good for me ,but i like gtk,so i want some pygtk ide look like
> > eric3
> > wing is a good python ide,but i can not download it
> > some other python ide(must use pygtk)
> > thx
> >
>
> You can just use a text editor like jedit with gazpacho or glade
> http://gazpacho.sicem.biz/
> They are not as easy to use at QT Designer though for building interfaces.

-- 
http://mail.python.org/mailman/listinfo/python-list