Message373068
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. |
|
Date |
User |
Action |
Args |
2020-07-06 05:26:38 | veky | set | recipients:
+ veky, brett.cannon, terry.reedy, ezio.melotti, docs@python, Hibou57, Roscoe R. Higgins, Mariatta, cheryl.sabella, miss-islington, nanjekyejoannah |
2020-07-06 05:26:37 | veky | set | messageid: <1594013197.96.0.382153151673.issue26205@roundup.psfhosted.org> |
2020-07-06 05:26:37 | veky | link | issue26205 messages |
2020-07-06 05:26:37 | veky | create | |
|