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 poq
Recipients poq
Date 2011-05-21.22:39:47
SpamBayes Score 3.0981882e-05
Marked as misclassified No
Message-id <1306017588.73.0.650837416325.issue12142@psf.upfronthosting.co.za>
In-reply-to
Content
When importing ctypes after gc.set_debug(gc.DEBUG_LEAK), the garbage collector finds a 'c_int_Array_3' class and some related objects.

The class is created in ctypes/_endian.py:
_array_type = type(c_int * 3)

It seems that this could be avoided with:
_array_type = type(Array)

Of course, I realize this is not a bug because normally it will just get collected. It is just an extremely minor annoyance because this is currently the only thing still found by DEBUG_LEAK for my program ;)
History
Date User Action Args
2011-05-21 22:39:48poqsetrecipients: + poq
2011-05-21 22:39:48poqsetmessageid: <1306017588.73.0.650837416325.issue12142@psf.upfronthosting.co.za>
2011-05-21 22:39:48poqlinkissue12142 messages
2011-05-21 22:39:47poqcreate