On 9/24/19 4:54 AM, Richard Musil wrote: > On Tue, Sep 24, 2019 at 5:55 AM Stephen J. Turnbull > <turnbull.stephen...@u.tsukuba.ac.jp > <mailto:turnbull.stephen...@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. -- Richard Damon _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ETOVSIZGVOIOCWGPGGV2X6IMO46PAI7O/ Code of Conduct: http://python.org/psf/codeofconduct/