Jeroen Demeyer <j.deme...@ugent.be> added the comment:
The problem is easily reproduced with Cython: cdef class List(list): cdef int deallocated def __dealloc__(self): if self.deallocated: print("Deallocated twice!") self.deallocated = 1 L = None for i in range(10**4): L = List((L,)) del L ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35983> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com