@chepner In a method of a python class which is not decorated with something like
@classmethod
, instances of an object are always the leftmost function parameter. It can be named
self
. It can be named
this
. The leftmost function parameter can have any name that you like. Por ejemplo, programmers are free to write
def insert(this, new_value)
instead of
def insert(self, new_value)
—
Samuel Muldoon 9 secs ago