[Python-bugs-list] Segmentation violation on very long lists (PR#334)

guido@python.org guido@python.org
Sun, 21 May 2000 12:11:39 -0400 (EDT)


> Loading a .py file which attempts to define a very long list causes
> a segmentation violation.  An example file can be found at
> ftp:/pub/haase/todo.py, but I expect that most any long file defining a long
> list (20K elements) would do.

Thanks -- this is a known problem, it probably has to do with bytecode
field overflow (offsets are signed shorts).

--Guido van Rossum (home page: http://www.python.org/~guido/)