[Python-checkins] python/dist/src/Misc NEWS,1.416,1.417
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 04 Jun 2002 12:52:55 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv31651/Misc
Modified Files:
NEWS
Log Message:
Address SF bug 519621: slots weren't traversed by GC.
While I was at it, I added a tp_clear handler and changed the
tp_dealloc handler to use the clear_slots helper for the tp_clear
handler.
Also tightened the rules for slot names: they must now be proper
identifiers (ignoring the dirty little fact that <ctype.h> is locale
sensitive).
Also set mp->flags = READONLY for the __weakref__ pseudo-slot.
Most of this is a 2.2 bugfix candidate; I'll apply it there myself.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.416
retrieving revision 1.417
diff -C2 -d -r1.416 -r1.417
*** NEWS 4 Jun 2002 18:27:35 -0000 1.416
--- NEWS 4 Jun 2002 19:52:48 -0000 1.417
***************
*** 7,10 ****
--- 7,16 ----
Core and builtins
+ - Classes using __slots__ are now properly garbage collected.
+ [SF bug 519621]
+
+ - Tightened the __slots__ rules: a slot name must be a valid Python
+ identifier.
+
- The constructor for the module type now requires a name argument and
takes an optional docstring argument. Previously, this constructor