max length of a python program

Andrew Dalke adalke at mindspring.com
Thu Aug 21 13:25:51 EDT 2003


Ragu:
> Is there a limit to the # of lines that can be in a Python program?

Many years ago there was a limit of 64K lines, because of how
the line number opcode worked in Python.  Only machine
generated Python code ever ran into that limit.

That limit was removed in .. 1.5?  Can't find mention of
the fix in my cursory search.

So no, no effective limit.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list