This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Chun-Yu Tseng
Recipients Chun-Yu Tseng, Jesús Gómez, georg.brandl, xdegaye
Date 2016-11-17.01:50:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479347455.13.0.570600968687.issue26072@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-17 01:50:55Chun-Yu Tsengsetrecipients: + Chun-Yu Tseng, georg.brandl, xdegaye, Jesús Gómez
2016-11-17 01:50:55Chun-Yu Tsengsetmessageid: <1479347455.13.0.570600968687.issue26072@psf.upfronthosting.co.za>
2016-11-17 01:50:55Chun-Yu Tsenglinkissue26072 messages
2016-11-17 01:50:54Chun-Yu Tsengcreate