Plumbing behind super()

Thomas Jollans tjol at tjol.eu
Sat Jun 29 19:32:27 EDT 2019


On 30/06/2019 01:15, adam.preble at 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 variables so this is where I'm stuck in a sand pit.

Look up descriptors.

Actually, carefully (re)read all of 
https://docs.python.org/3/reference/datamodel.html




More information about the Python-list mailing list