2 ms·
> I’ve used nonlocal 0 times ever. Same here, but I got bitten by weird scoping rules quite a few times. Separating variable definition from assignment (e.g.
by chombier 3y ago
> I’ve used nonlocal 0 times ever.
Same here, but I got bitten by weird scoping rules quite a few times.
Separating variable definition from assignment (e.g. with 'let') would probably help a lot in this case.