Python dictionary size/entry limit?

Stefan Behnel stefan_ml at
Wed Feb 25 15:39:15 CET 2009

Martin v. Löwis wrote:
> intelliminer at wrote:
>> Is there a limit to the size or number of entries that a single 
>> dictionary can possess?
> On a 32-bit system, the dictionary can have up to 2**31 slots,
> meaning that the maximum number of keys is slightly smaller
> (about 2**30).

Which, in practice, means that the size is limited by the available memory.


More information about the Python-list mailing list