Matthias Bussonnier wrote:
I search for a method
capable of telling me whether an object can be weakreferenced.

Objects that can be weakly referenced have a __weakref__ attribute.
So you could use hasattr(obj, '__weakref__').

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to