[Q] python vs checker.py maxlocals
sismex01 at hebmex.com
sismex01 at hebmex.com
Wed Mar 26 18:09:31 EST 2003
> From: achrist at easystreet.com [mailto:achrist at easystreet.com]
> Sent: Wednesday, March 26, 2003 5:07 PM
>
> The static code analysis tool checker.py gives me a warning for
> using about 60 local variables in one function. That seems to
> indicate a very low limit. What is the number that python (v2.2
> on 32-bit Windows) will actually allow?
>
> Al
>
argh... 60 locals in a single function???
Most probably, it isn't that Python won't allow more,
it's that it's very bad form to do such a thing.
Can't you break it up into smaller functions which
so a very concise, small task?
:-)
-gustavo
More information about the Python-list
mailing list