On 9/24/19 4:54 AM, Richard Musil wrote:
On Tue, Sep 24, 2019 at 5:55 AM Stephen J. Turnbull <turnbull.stephen.fw@u.tsukuba.ac.jp mailto:turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
Richard Musil writes: > The implementation can be an additional attribute on an identifier That's not an implementation yet. From the point of view of the Python program, an identifier is an entry in a namespace. To describe an implementation of something that acts on identifiers, you need to say what namespaces are subject to this action, and what happens when the action might "cross" namespaces.
I am afraid this is where my abstraction ends, and my ignorance of Python internal implementation begins. I cannot answer those questions.
Richard
I think part of the issue is the idea that identifiers have attributes. In Python, identifiers are basically just labels in a namespace that bind to objects (and multiple labels can bind to the same object).
Basically, in most cases the identifier is a key to a dictionary, the entry associated with it being a binding to an object.
To add an 'attribute' to that identifier requires major changes in how that works and also will interfere with a namespace being able to override how that binding works.