Message308683
Okay, I have never used something like that. Personally, I'd
disallow the global statement in g() if 'a' is local in f().
>>> a = 10
>>> def f():
... a = 20
... def g():
... global a
... print(a)
... g()
...
>>>
>>> f()
10 |
|
Date |
User |
Action |
Args |
2017-12-19 20:47:47 | skrah | set | recipients:
+ skrah, r.david.murray, levkivskyi, Camion |
2017-12-19 20:47:47 | skrah | set | messageid: <1513716467.72.0.213398074469.issue32361@psf.upfronthosting.co.za> |
2017-12-19 20:47:47 | skrah | link | issue32361 messages |
2017-12-19 20:47:47 | skrah | create | |
|