Is object a weak reference?

is_weakref(x)

Arguments

x

An object to test.