Andrew Svetlov <andrew.svet...@gmail.com> added the comment:
``` In [1]: import weakref In [2]: class A: ...: __slots__ = () In [3]: weakref.ref(A()) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-60f73a442704> in <module> ----> 1 weakref.ref(A()) TypeError: cannot create weak reference to 'A' object ``` ---------- nosy: +asvetlov _______________________________________ 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