[Python-Dev] Re: tp_clear return value

"Martin v. L÷wis" martin@v.loewis.de
Wed, 09 Apr 2003 23:47:52 +0200

Neil Schemenauer wrote:

> Could the visit procedure keep track of errors?  

No. For get_referrers (as Tim explains), it might be acceptable but
less efficient (since traversal should stop when a the object is found
to be a referrer). For get_referents, an error in the callback should
really abort traversal as the system just went out of memory.