Too Many if Statements?

slogging_away hinnc at yahoo.com
Thu Feb 9 10:05:50 EST 2006


Terry Reedy wrote:

> The OP did not specify whether all of his if-tests were sequential as in
> your test or if some were nested.  I vaguely remember there being an indent
> limit (40??).

Most of the if statements are nested.  Almost all of them fall under a
central 'for xxx in range(x,x,x)', (this is the statement that checks
thorugh each of the saved configuration files).   Under that 'for'
statment are the bulk of the 'if' statements - some nested and some not
- some also fall under other 'for' statements.  The indent level does
not exceed 10..

Delaney, Timothy (Tim) wrote:

> I'm pretty sure the OP has hit the python script line limit (32767?).

The script is 4903 lines long.

Slightly off topic; I am just a Network Engineer that can write some
code that accomplishes what I need to get done.  I'm learning something
new everyday but I am really blown away by the responses to this
thread.  I could not buy support this good.  Thanks for your responses.




More information about the Python-list mailing list