max length of a python program

Michael Hudson mwh at python.net
Fri Aug 22 08:56:29 EDT 2003


Christos "TZOTZIOY" Georgiou <tzot at sil-tec.gr> writes:

> On Thu, 21 Aug 2003 17:25:51 GMT, rumours say that "Andrew Dalke"
> <adalke at mindspring.com> might have written:
> 
> >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.
> 
> What is the width of JUMP opcode offsets?  If it is 16 bit, is there a
> chance that someday somebody is going to write such a large basic block
> that their program will fail?

I'm pretty sure that limit has been lifted too (in the 2.0 timeframe?
Not sure).  I think you can have basic blocks the full 2^32 bytes long
now :-)

Cheers,
mwh

-- 
  Check out the comments in this source file that start with:
  # Oh, lord help us.
            -- Mark Hammond gets to play with the Outlook object model




More information about the Python-list mailing list