11 ms·
At least there are tools for python which will catch misnamed variables: $ pychecker a.py Processing module a (a.py)... Warnings... a.py:3: Loc
by viraptor 15y ago
At least there are tools for python which will catch misnamed variables:
$ pychecker a.py
Processing module a (a.py)...
Warnings...
a.py:3: Local variable (somevar) not used
a.py:4: Local variable (someothervar) shadows global defined on line 1
a.py:5: Local variable (someothervar) shadows global defined on line 1
a.py:5: No global (some_func) found
not every problem with scoping can be caught that way, but hey... can't have everything.