Comment

Comment by cpburns2009

I've never bought this argument. Underneath all of the magic inheritance in Python is just the MRO (method resolution order). That's not characteristically any different from JavaScript's prototype chain. There's no reason a Python JIT couldn't optimize everything JavaScript does, and if you do specifically access `self.__dict__`, that can be a cold, unoptimizable path.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton