Re: Plumbing behind super()

2019-06-27 Thread adam . preble
I was wrong in the last email because I accidentally in super_gettro instead of super_init. Just for some helper context: >>> class Foo: ... pass ... >>> class Bar(Foo): ... def __init__(self): ... super().__init__() ... self.a = 2 ... >>> dis(Bar) Disassembly of __init__: 3

Re: Plumbing behind super()

2019-06-27 Thread Random832
On Thu, Jun 27, 2019, at 23:32, adam.pre...@gmail.com wrote: > On Thursday, June 27, 2019 at 8:30:21 PM UTC-5, DL Neil wrote: > > I'm mystified by "literally given nothing". > > I'm focusing there particularly on the syntax of writing "super()" > without any arguments to it. However, internally i

Re: Plumbing behind super()

2019-06-27 Thread adam . preble
On Thursday, June 27, 2019 at 8:30:21 PM UTC-5, DL Neil wrote: > I'm mystified by "literally given nothing". I'm focusing there particularly on the syntax of writing "super()" without any arguments to it. However, internally it's getting fed stuff. > If a class has not defined an attribute, eg s

Re: Plumbing behind super()

2019-06-27 Thread DL Neil
On 28/06/19 12:13 PM, adam.pre...@gmail.com wrote: I'm trying to mimick Python 3.6 as a .NET science project and have started to get into subclassing. The super() not-a-keyword-honestly-guys has tripped me up. I have to admit that I've professionally been doing a ton Python 2.7, so I'm not goo

Plumbing behind super()

2019-06-27 Thread adam . preble
I'm trying to mimick Python 3.6 as a .NET science project and have started to get into subclassing. The super() not-a-keyword-honestly-guys has tripped me up. I have to admit that I've professionally been doing a ton Python 2.7, so I'm not good on my Python 3.6 trivia yet. I think I have the gen