18 Mar
2017
18 Mar
'17
1:39 p.m.
Ivan Levkivskyi added the comment: It looks like it is safe to just remove this line from docs. This code
x = 1 def f(): ... global x ... del x ... f() x
Works as expected, i.e. raises NameError. (The same happens for nonlocal but with UnboundLocalError.) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24796> _______________________________________