IndentationError: two many levels of indentation
andrew-pythonlist at puzzling.org
Fri Mar 7 09:45:29 CET 2003
On Fri, Mar 07, 2003 at 09:17:51AM +0100, Martin v. L?wis wrote:
> Two Inches <missedby2inches at gmx.net> writes:
> > We've got this error when we tried to execute code that was created
> > with a generator tool. The code had about 500 levels of indentation
> > (nested if blocks). It is no problem for us to change the generator.
> > However, I couldn't find this limitation in the language
> > reference. Shouldn't it be in there? What is the exact limit?
> > Is there any technical rational for this limit?
> There is no limit in the compiler that I know of. Instead,
$ strings `which python` | grep "too many"
too many values to unpack
too many statically nested blocks
too many levels of indentation <---------
too many groups
XXX too many states!
range() result has too many items
xrange() result has too many items
xrange object has too many items
Looks there is some sort of limit :)
More information about the Python-list