[docs] [issue34830] functools.partial is weak referncable
Andrew Svetlov
report at bugs.python.org
Fri Sep 28 05:36:27 EDT 2018
Andrew Svetlov <andrew.svetlov at 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 <report at bugs.python.org>
<https://bugs.python.org/issue34830>
_______________________________________
More information about the docs
mailing list