Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21140

Re: Is this the proper way to use a class method?

Newsgroups comp.lang.python
Date 2012-03-02 10:51 -0800
References <4136337.363.1330668021961.JavaMail.geo-discussion-forums@ynjd19> <mailman.339.1330669514.3037.python-list@python.org> <21646224.4.1330672614560.JavaMail.geo-discussion-forums@ynt13> <mailman.345.1330675701.3037.python-list@python.org>
Subject Re: Is this the proper way to use a class method?
From John Salerno <johnjsal@gmail.com>
Message-ID <mailman.347.1330714310.3037.python-list@python.org> (permalink)

Show all headers | View raw


> Oh, but it does get passed, just implicitly. `super()` basically grabs
> `self` magically from its caller, and uses it to bind method calls on
> the magical object returned by `super()`.

Thanks again, now I understand :)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is this the proper way to use a class method? John Salerno <johnjsal@gmail.com> - 2012-03-01 22:00 -0800
  Re: Is this the proper way to use a class method? Chris Rebert <clp2@rebertia.com> - 2012-03-01 22:25 -0800
    Re: Is this the proper way to use a class method? John Salerno <johnjsal@gmail.com> - 2012-03-01 23:16 -0800
      Re: Is this the proper way to use a class method? Ian Kelly <ian.g.kelly@gmail.com> - 2012-03-02 01:04 -0700
      Re: Is this the proper way to use a class method? Chris Rebert <clp2@rebertia.com> - 2012-03-02 00:08 -0800
        Re: Is this the proper way to use a class method? John Salerno <johnjsal@gmail.com> - 2012-03-02 10:51 -0800
        Re: Is this the proper way to use a class method? John Salerno <johnjsal@gmail.com> - 2012-03-02 10:51 -0800
    Re: Is this the proper way to use a class method? John Salerno <johnjsal@gmail.com> - 2012-03-01 23:16 -0800

csiph-web