Author veky
Recipients Hibou57, Mariatta, Roscoe R. Higgins, brett.cannon, cheryl.sabella, docs@python, ezio.melotti, miss-islington, nanjekyejoannah, terry.reedy, veky
Date 2020-07-06.05:26:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594013197.96.0.382153151673.issue26205@roundup.psfhosted.org>
In-reply-to
Content
Well, then "what name is in which namespace" is relative to which function we're considering. In my example above, imagine aa has x declared, bb has y, and cc has z. Then y and z are in the same namespace when we look from the perspective of aa, but they are not in the same namespace from the perspective of bb. Even worse, cc sees z but doesn't see y. How can they be in the same namespace then?

I always thought about namespaces as mappings from names to objects, independent of perspective. Whether two names are in the same namespace, should be a question with an objective answer.
History
Date User Action Args
2020-07-06 05:26:38vekysetrecipients: + veky, brett.cannon, terry.reedy, ezio.melotti, docs@python, Hibou57, Roscoe R. Higgins, Mariatta, cheryl.sabella, miss-islington, nanjekyejoannah
2020-07-06 05:26:37vekysetmessageid: <1594013197.96.0.382153151673.issue26205@roundup.psfhosted.org>
2020-07-06 05:26:37vekylinkissue26205 messages
2020-07-06 05:26:37vekycreate