[issue13250] ctypes: reference leak in POINTER code

2011-11-09 Thread Meador Inge
Meador Inge added the comment: I opened issue13380 for fixing the ctypes regrtest caching problem. -- ___ Python tracker ___ ___ Pyth

[issue13250] ctypes: reference leak in POINTER code

2011-10-23 Thread Meador Inge
Meador Inge added the comment: Ah, I see now. Thanks Benjamin. > So it's not a bug at all, right? A bug in regrtest.py maybe. 'dash_R_cleanup' clears various other caches in between test runs to avoid false positives like this. Perhaps 'ctypes._pointer_type_cache' should be cleared there as

[issue13250] ctypes: reference leak in POINTER code

2011-10-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: So it's not a bug at all, right? -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue13250] ctypes: reference leak in POINTER code

2011-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: The cause is ctypes caches POINTER types. You have to make sure to clear the cache. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue13250] ctypes: reference leak in POINTER code

2011-10-23 Thread Meador Inge
New submission from Meador Inge : While implementing a patch for issue13096 I found a reference leak in 'ctypes'. I couldn't find the cause immediately, but it can be reproduced by applying the attached patch and running: [meadori@motherbrain cpython]$ ./python -m test -R : test_ctypes [1/1]