On 30/06/2019 01:15, adam.pre...@gmail.com wrote:
Whoops. Now I need to figure out how the interpreter knows that change_a is a
method and knows what self to feed it. I'm assuming that's in the cell
variables similar to what super()'s doing as explained here. I haven't
implemented cell variab
Thanks for the replies from everybody. It looks like I should double check
super_init and see what truck is coming from that which will hit me with a
gotcha later. I'm very naively right now plucking the class from my locals and
I was able to proceed in the very, very short term.
I think I woul
On 28/06/2019 02:13, 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 good
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
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
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
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