[BangPypers] Reorder Dictionary Size in python

Rahul R rahul8590 at gmail.com
Wed Apr 17 17:30:26 CEST 2013


Hey  Guys,

Is it possible to forcibly reorder the python dictionary after "n" number
of inserts and deletions. As far as i know, python dictionary performs lazy
deletes. Thus , even if the data is deleted, python has a dummy data their
in order to preserve consistency. The python dictionary
keeps expanding when the size of dict is increasing, but after deleting a
few parameters the size does not decrease. Is there a way , where I can
forcibly resize the dictionary ?

I was thinking of copying content from existing dictionary to new dict and
deleting the previous one.But thats a cumbersome operation.

Thanks,
./Rahul


More information about the BangPypers mailing list