[Python-Dev] New syntax for 'dynamic' attribute access (original) (raw)

Benji York benji at benjiyork.com
Mon Feb 12 23:48:59 CET 2007


Collin Winter wrote:

On 2/12/07, Brett Cannon <brett at python.org> wrote:

I actually kind of like that. The connection to pointer indirection meshes well with the idea of indirectly figuring out what attribute to access at runtime. There's a connection, but I'd say it's the wrong one. In C, "x->y" dereferences x, while in Python, "x->y" would dereference y. That's just begging for trouble.

Then the syntax should obviously be "x<-y".

[insert in-Soviet-Russia-variables-dereference-you joke here]

Benji York



More information about the Python-Dev mailing list