[Python-checkins] r45447 - python/trunk/Objects/genobject.c (original) (raw)
tim.peters python-checkins at python.org
Sun Apr 16 00:59:10 CEST 2006
- Previous message: [Python-checkins] r45446 - python/trunk/Objects/listobject.c python/trunk/Objects/typeobject.c
- Next message: [Python-checkins] buildbot warnings in ppc Debian unstable trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tim.peters Date: Sun Apr 16 00:59:10 2006 New Revision: 45447
Modified: python/trunk/Objects/genobject.c Log: gen_del(): Looks like much this was copy/pasted from slot_tp_del(), but while the latter had to cater to types that don't participate in GC, we know that generators do. That allows strengthing an assert().
Modified: python/trunk/Objects/genobject.c
--- python/trunk/Objects/genobject.c (original) +++ python/trunk/Objects/genobject.c Sun Apr 16 00:59:10 2006 @@ -185,7 +185,7 @@ _Py_NewReference(self); self->ob_refcnt = refcnt; }
assert(!PyType_IS_GC(self->ob_type) ||
assert(PyType_IS_GC(self->ob_type) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); /* If Py_REF_DEBUG, _Py_NewReference bumped _Py_RefTotal, so
- Previous message: [Python-checkins] r45446 - python/trunk/Objects/listobject.c python/trunk/Objects/typeobject.c
- Next message: [Python-checkins] buildbot warnings in ppc Debian unstable trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]