def deref(self): """Returns either the in-transaction-value of this ref if there is an active transaction, or returns the last committed value of ref""" transaction = LockingTransaction.get() if transaction: return transaction.getRef(self) return self._currentVal()