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:

Python tracker <>
Python-bugs-list mailing list

Reply via email to