New submission from Serhiy Storchaka: Here is a patch that implements correct __sizeof__ for StgDict (a dictionary subclass used in ctypes).
There are no tests because I don't know how to create and use StgDict. So I'm not sure that the code works correctly. Please help me with tests. ---------- components: Library (Lib) files: stgdict_sizeof-3.3.patch keywords: patch messages: 168399 nosy: amaury.forgeotdarc, belopolsky, meador.inge, storchaka priority: normal severity: normal stage: patch review status: open title: Correct __sizeof__ support for StgDict type: behavior versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file26854/stgdict_sizeof-3.3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15695> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com