[Python-Dev] Re: tp_clear return value (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 11 Apr 2003 12:54:01 +1200 (NZST)


it would be nice to get rid of the endlessly repeated ... ugly incantations out of the many tptraverse slots, in return for putting a little bit of setjmp/longjmp ugliness in exactly four functions hiding in a single module.

I'd be pretty nervous about having any longjmps anywhere near anything Python.

If you do this, you'll have to make it very clear that tp_traverse implementations MUST NOT alter any Python ref counts, or rely in any other way on running to completion.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+