Author iritkatriel
Recipients Arfrever, barry, benjamin.peterson, christian.heimes, eric.snow, ezio.melotti, iritkatriel, levkivskyi, ncoghlan, pconnell, r.david.murray, serhiy.storchaka
Date 2021-03-21.23:22:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think the issue is that the error message for UnboundLocalError is wrong, see this example:

>>> def g():
...    x = 42
...    del x
...    print(x)
>>> g()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 4, in g
UnboundLocalError: local variable 'x' referenced before assignment

How about we change it to "local variable 'x' referenced before assignment or after deletion"?
Date User Action Args
2021-03-21 23:22:07iritkatrielsetrecipients: + iritkatriel, barry, ncoghlan, christian.heimes, benjamin.peterson, ezio.melotti, Arfrever, r.david.murray, eric.snow, serhiy.storchaka, pconnell, levkivskyi
2021-03-21 23:22:07iritkatrielsetmessageid: <>
2021-03-21 23:22:07iritkatriellinkissue17792 messages
2021-03-21 23:22:07iritkatrielcreate