dunder-docs (was Python is DOOMED! Again!)
Chris Angelico
rosuav at gmail.com
Tue Feb 3 05:49:32 EST 2015
On Tue, Feb 3, 2015 at 9:38 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> It's slightly sad that Python exposes the two-level attribute lookup. It
> would be more elegant if, conceptually, all methods were retrieved from
> the object's attribute dict. That way, the class would be simply a
> mundane optimization trick instead of a metaphysical entity.
>
That's the ECMAScript model of classes - prototype-based. It's not
Python's. There are many different ways to do things.
ChrisA
More information about the Python-list
mailing list