List limits

Raymond Hettinger vze4rx4y at verizon.net
Mon Dec 20 16:34:05 EST 2004


> How many items can be stored in a Python list? I have close to 70,000
> items... is this within a lists limits?

Lists store pointers to objects.  Unless you have a lot of duplicates, it is the
objects themselves that will consume most of your memory.  The list itself will
likely be small in comparison.


Raymond Hettinger





More information about the Python-list mailing list