Re: [Python-Dev] When tp_clear returns non-zero?

2018年5月28日 09:36:55 -0700

On 2018年05月28日, Serhiy Storchaka wrote:
> I'm interesting what the result of this function means. In what
> cases it can return non-zero, and can it set an exception?
My memory is fuzzy (nearly 20 years since I wrote that code). My
best guess is that I thought a return value might be useful somehow.
As you have noticed, the return type probably should have been void.
If you want to see one of the first implementations of the Python
GC, I still have a patch:
 http://python.ca/nas/python/gc/gc-cycle-152.diff
Regards,
 Neil
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to