Antoine Pitrou added the comment: Why the PyWeakref_Check() in your patch? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17765> _______________________________________