Author pablogsal
Recipients Esa.Peuha, Mark.Shannon, RJ722, Rosuav, cheryl.sabella, lys.nikolaou, mbussonn, ncoghlan, pablogsal, r.david.murray, terry.reedy
Date 2020-06-30.17:26:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 1) We should alter code in symtable.c to check whether the namespace in which the nonlocal statement appears in is a function block and whether it is nested or not.

We already raise in this case. Consider this '' file:

x = 34
def f():
    nonlocal x
    x = 24


Executing python

  File "", line 3
    nonlocal x
SyntaxError: no binding for nonlocal 'x' found
Date User Action Args
2020-06-30 17:26:55pablogsalsetrecipients: + pablogsal, terry.reedy, ncoghlan, r.david.murray, Mark.Shannon, Rosuav, Esa.Peuha, mbussonn, cheryl.sabella, lys.nikolaou, RJ722
2020-06-30 17:26:55pablogsalsetmessageid: <>
2020-06-30 17:26:55pablogsallinkissue19335 messages
2020-06-30 17:26:55pablogsalcreate