]> granicus.if.org Git - python/commit
Address SF bug 519621: slots weren't traversed by GC.
authorGuido van Rossum <guido@python.org>
Tue, 4 Jun 2002 19:52:53 +0000 (19:52 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Jun 2002 19:52:53 +0000 (19:52 +0000)
commit9923ffe2c0f96b1b79f2f5ae39b64b55e038c566
tree7449f4009ac1d95cac9185ebad1d2d622546c708
parente22bc1e84135765456dee6337e6e6f61245aa694
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.
Lib/test/test_descr.py
Misc/NEWS
Objects/typeobject.c