Brett Cannon <br...@python.org> added the comment:

I just came across the warning myself (after ignoring all the PyType_INIT() 
warnings; what to do about those?) and came to the same conclusion: it's a pain 
to fix.

One option is to do a PyErr_Occurred() check at inherit_slots() call sites. 
Would that mitigate the leak? If I remember correctly inherit_slots() is not 
called constantly (only when a type is being created?) so having the expensive 
PyErr_Occurred() call should not hurt performance.

----------
nosy: +brett.cannon

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to