[issue26072] pdb fails to access variables closed over
Chun-Yu Tseng
report at bugs.python.org
Wed Nov 16 20:50:55 EST 2016
Chun-Yu Tseng added the comment:
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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26072>
_______________________________________
More information about the Python-bugs-list
mailing list