Ah Python, you have spoiled me for all other languages

Chris Angelico rosuav at gmail.com
Fri May 22 14:11:28 EDT 2015


On Sat, May 23, 2015 at 3:47 AM, Grant Edwards <invalid at invalid.invalid> wrote:
>  * When used in a browser, the rather odd meanings of 'this' in
>    certain situations.

Yes. Closures can retain state exactly the way you'd expect them to,
yet what Python would call a bound method (another way of retaining
state, specifically the object before the dot) is just... a function.
I find this nothing but bizarre. It basically demotes 'this' to the
position of any other argument, only it's implicit.

ChrisA



More information about the Python-list mailing list