Benefit of using the super() method

Oops, sorry for double-posting my question... I thought my question didn't went through... So, uhm, does anyone know if super().__init__(*args, **kwargs) is valid in Python 3.3?

···

-----Original message-----
From: Chris Barker - NOAA Federal
Sent: 05.06.2013, 19:41
To: wxpython-users@googlegroups.com
Subject: Re: [wxPython-users] Benefit of using the super() method

On Wed, Jun 5, 2013 at 10:35 AM, "Boštjan Mejak" <mejak.bost@gmail.com> wrote:

So in my example code, I would only need to do this:
super().MyFrame() ???

no, it would be:

class MyFrame(wx.Frame):
    def __Init__(self, *args, **kwargs)
        super().__init__(*args, **kwargs)

(I think -- I'm not running py3...)

see the post "super considered super":

-Chris

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Boštjan Mejak wrote:

Oops, sorry for double-posting my question... I thought my question didn't went through... So, uhm, does anyone know if super().__init__(*args, **kwargs) is valid in Python 3.3?

Why don't you try it and find out?

···

--
Robin Dunn
Software Craftsman

Because (s)he's perhaps a known troll:

  [issue11806] Missing 2 hyphens in the docs

Karsten

···

On Wed, Jun 05, 2013 at 11:05:36AM -0700, Robin Dunn wrote:

Boštjan Mejak wrote:
>Oops, sorry for double-posting my question... I thought my question didn't went through... So, uhm, does anyone know if super().__init__(*args, **kwargs) is valid in Python 3.3?

Why don't you try it and find out?

--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346