[Python-checkins] python/dist/src/Misc NEWS,1.926,1.927

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Thu Feb 5 23:15:25 EST 2004


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27649

Modified Files:
	NEWS 
Log Message:
added notes about weakref changes


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.926
retrieving revision 1.927
diff -C2 -d -r1.926 -r1.927
*** NEWS	2 Feb 2004 13:39:00 -0000	1.926
--- NEWS	6 Feb 2004 04:15:22 -0000	1.927
***************
*** 13,16 ****
--- 13,31 ----
  -----------------
  
+ - Made omitted callback and None equivalent for weakref.ref() and
+   weakref.proxy(); the None case wasn't handled correctly in all
+   cases.
+ 
+ - Fixed problem where PyWeakref_NewRef() and PyWeakref_NewProxy()
+   assumed that initial existing entries in an object's weakref list
+   would not be removed while allocating a new weakref object.  Since
+   GC could be invoked at that time, however, that assumption was
+   invalid.  In a truly obscure case of GC being triggered during
+   creation for a new weakref object for an referent which already
+   has a weakref without a callback which is only referenced from
+   cyclic trash, a memory error can occur.  This consistently created a
+   segfault in a debug build, but provided less predictable behavior in
+   a release build.
+ 
  - input() builtin function now respects compiler flags such as
    __future__ statements.  SF patch 876178.




More information about the Python-checkins mailing list