Message308623
> Does it makes sense to have the presence of "global a" in g, block all possibility for h, to access it's grand parent's a ?
From the perspective of ML-style languages with pure lexical scoping, no, it does not make sense.
But Python started with C-like simple name spaces, then nested functions and 'nonlocal' were added.
I think the answer (as usual) is that people may rely on the established convention and that it is no problem in practice. |
|
Date |
User |
Action |
Args |
2017-12-19 09:45:32 | skrah | set | recipients:
+ skrah, r.david.murray, levkivskyi, Camion |
2017-12-19 09:45:32 | skrah | set | messageid: <1513676732.2.0.213398074469.issue32361@psf.upfronthosting.co.za> |
2017-12-19 09:45:32 | skrah | link | issue32361 messages |
2017-12-19 09:45:32 | skrah | create | |
|