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

Martin v. L�wis martin@v.loewis.de
10 Apr 2003 07:33:22 +0200


"Tim Peters" <tim_one@email.msn.com> writes:

Still, I expect both could be handled by setjmp in the gc module getref* driver functions and longjmp (as needed) in the gc module visitor functions. IOW, the tptraverse slot functions don't really need to cooperate, or even know anything about "early returns".

That would require that tp_traverse does not modify any refcount while iterating, right? It seems unpythonish to use setjmp/longjmp for exceptions.

Regards, Martin