weakref.ref which makes wrapped object hashable.

We take care to ensure that a hash can still be provided in the case that the ref has been cleaned up. This ensures that the WeakKeyDictionary doesn't suffer memory leaks by failing to clean up HashableWeakRef key objects whose referrents have gone out of scope and been destroyed.

referrent Object that is being referred to.
callback Optional callback to invoke when object is GCed.



Call self as a function.


View source

Return self==value.


Return self>=value.


Return self>value.


Return self<=value.


Return self<value.


View source

Return self!=value.