Using Python 2.6 and discodb 0.2 or 0.1:
import discodb
data = {'foo': 'bar'}
arr = []
for x in xrange(65537):
print x
data_disco = discodb.DiscoDB(data)
arr.append(data_disco)
print "Got to the end safely."
1
...
65535
65536
Got to the end safely.
python: malloc.c:3551: munmap_chunk: Assertion `ret == 0' failed.
Aborted
Smaller collections of DiscoDB objects work as expected.