maximum length of a list & tuple

Larry Bates lbates at swamisoft.com
Fri Apr 9 10:35:55 EDT 2004


I've constructed lists with 100,000+ elements and
they have worked flawlessly.

FYI,
Larry Bates
Syscon, Inc.

"Lupe" <luis_ at iname.com> wrote in message
news:c54lq3$2pe1sf$1 at ID-202776.news.uni-berlin.de...
> hi,
>
> I'm finishing a small program which uses recursion for less than 100
levels.
>
> Each time the function is called, it compares an element of a list (which
is
> a list too) to other elements, which all amounts to millions of
> comparisons.
>
> The program is working for short lists but not for longer ones.  I think
> there are two possible problems:  either disk space is not enough to save
> lists as the program is executed or there is a finite manageable list
> lenght that is reached by the program.
>
> hence my question:
>
> is there a limit? which one? I'm using list.append()
> what about for tuples?
>
> I'll rewrite that part of the code and will overcome the problem, since I
> only need a few elements of the list generated, but I'm still curious
about
> the answers
>
> Thanks in advanve
>
> Lupe





More information about the Python-list mailing list