max length of a python program
Gary Herron
gherron at islandtraining.com
Thu Aug 21 13:44:33 EDT 2003
On Thursday 21 August 2003 06:13 am, Ragu wrote:
> Is there a limit to the # of lines that can be in a Python program?
Log ago (perhaps version 1.2?) there was a limit of 16383 lines. The
code that generated line numbers crapped out when it overflowed the 16
bits used to hold it. I think I remember Guido being surprised when I
pointed this out -- although I don't know if the surprise was at the
existance of the limit or at the idea of a program that long. (It was
an automatically genereted program used to create some data structure
-- I hardly remember anymore what I was doing -- but it was one of my
first Python programs and it was a stupid idea -- soon remedied.)
I think the limit was removed soon after that.
More information about the Python-list
mailing list