STINNER Victor added the comment: I modified the example a little bit to display the RSS memory 10 times. The RSS increases by +176 kB at the beginning and then it is stable.
I tested on Fedora 20 (Linux): anydbm.open('bla', 'c') creates a 'bsddb._DBWithCursor' object. Can you please give us the DBM type returned by: $ ./python Python 2.7.8+ (2.7:9b4673d7b046, Oct 1 2014, 00:20:22) >>> import anydbm >>> d=anydbm.open('bla', 'c') >>> type(d) <class 'bsddb._DBWithCursor'> >>> d.close() The loop of your example can maybe by simplified to: d=anydbm.open('bla', 'c') d.close() instead of sh = shelve.open('blah') sh.close() ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com