MemoryError in big dictionaries

Steve Kirsch (stk@infoseek.com)
Mon, 14 Mar 1994 23:43:40 +0800

Consider the following program:

dict={}
def dictset(x):
for key in range(x):
keyc=`key`
dict[keyc]=keyc
os.times()

--------------------
dictset(10000) works fine.
dictset(100000) gives a memory error.

I'm running on a 256M system with no other users.

Why am I getting a memory error for a dictionary with only 100,000
entries?

-steve