This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gustavo
Recipients gustavo, r.david.murray
Date 2014-02-05.14:58:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391612309.91.0.888291074124.issue20519@psf.upfronthosting.co.za>
In-reply-to
Content
I have narrowed it down to one line of code:
ctypes.create_string_buffer(16)

That is enough to create 7 objects that have reference cycles.

[<class 'ctypes.c_char_Array_16'>, {'__module__': 'ctypes', '__doc__': None, '__weakref__': <attribute '__weakref__' of 'c_char_Array_16' objects>, 'raw': <attribute 'raw' of 'c_char_Array_16' objects>, '_length_': 16, '_type_': <class 'ctypes.c_char'>, 'value': <attribute 'value' of 'c_char_Array_16' objects>, '__dict__': <attribute '__dict__' of 'c_char_Array_16' objects>}, (<class 'ctypes.c_char_Array_16'>, <class '_ctypes.Array'>, <class '_ctypes._CData'>, <class 'object'>), <attribute '__weakref__' of 'c_char_Array_16' objects>, <attribute 'raw' of 'c_char_Array_16' objects>, <attribute 'value' of 'c_char_Array_16' objects>, <attribute '__dict__' of 'c_char_Array_16' objects>]

So maybe the bug is in ctypes itself, not the uuid module.
History
Date User Action Args
2014-02-05 14:58:29gustavosetrecipients: + gustavo, r.david.murray
2014-02-05 14:58:29gustavosetmessageid: <1391612309.91.0.888291074124.issue20519@psf.upfronthosting.co.za>
2014-02-05 14:58:29gustavolinkissue20519 messages
2014-02-05 14:58:29gustavocreate