import struct s = struct.Struct('i') s.__init__('ii') # here, we have a leak