Message412374
The "evaluate the target" part causes the UnboundLocalError, just as in:
>>> x=1
>>> def f():
... x
... x = x + 1
...
>>> f()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in f
UnboundLocalError: local variable 'x' referenced before assignment |
|
Date |
User |
Action |
Args |
2022-02-02 16:38:45 | eric.smith | set | recipients:
+ eric.smith, steven.daprano, mscholle |
2022-02-02 16:38:45 | eric.smith | set | messageid: <1643819925.71.0.298960918844.issue46612@roundup.psfhosted.org> |
2022-02-02 16:38:45 | eric.smith | link | issue46612 messages |
2022-02-02 16:38:45 | eric.smith | create | |
|