[Tutor] max. range of list

Kent Johnson kent37 at tds.net
Fri Mar 25 16:26:00 CET 2005


jrlen balane wrote:
> how many is the maximum member can a list have???

According to this thread
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/2ddae82bb2c1b871/e00b7903bc887a73
the number of element in a list is stored in an int, so most likely the hard limit is 2**31-1. The 
practical limit is the available memory.

Kent



More information about the Tutor mailing list