5 Commits

Author SHA1 Message Date
Tim Peters
7d37a2a564 SF 1055820: weakref callback vs gc vs threads
In cyclic gc, clear all weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.

This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.
2004-10-31 00:13:07 +00:00
Tim Peters
ca6919c180 SF bug 839548: Bug in type's GC handling causes segfaults.
Also SF patch 843455.

This is a critical bugfix, backported from 2.4 development.
I don't intend to backport beyond 2.3 maint.  The bugs this fixes
have been there since weakrefs were introduced.
2003-11-20 22:13:51 +00:00
Mark Hammond
91a681debf Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
2002-08-12 07:21:58 +00:00
Fred Drake
335244c710 Remove bogus declaration. 2001-10-05 22:06:45 +00:00
Fred Drake
8844d5264f The weak reference implementation, separated from the weakref module. 2001-10-05 21:52:26 +00:00