Message281016
Your solution is quite neat.
But it still misses use cases of the `global` statement:
1 y = 2
2
3 def f():
4 y = 9
5 -> import pdb; pdb.set_trace();
6
7 f()
(Pdb) global y; y
9
(Pdb) global y; y += 1; y
10
(Pdb) globals()['y']
2 |
|
Date |
User |
Action |
Args |
2016-11-17 01:50:55 | Chun-Yu Tseng | set | recipients:
+ Chun-Yu Tseng, georg.brandl, xdegaye, Jesús Gómez |
2016-11-17 01:50:55 | Chun-Yu Tseng | set | messageid: <1479347455.13.0.570600968687.issue26072@psf.upfronthosting.co.za> |
2016-11-17 01:50:55 | Chun-Yu Tseng | link | issue26072 messages |
2016-11-17 01:50:54 | Chun-Yu Tseng | create | |
|