Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Instances of many builtin types are not weak referencable. >>> weakref.ref(0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot create weak reference to 'int' object >>> weakref.ref([]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot create weak reference to 'list' object ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34830> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com