(self, key)
Return how many Mor objects are stored for the given instance.
        If the key is not in the cache, raises a KeyError.
Return how many Mor objects are stored for the given instance.
        If the key is not in the cache, raises a KeyError.
Return how many Mor objects are stored for the given instance . If the key is not in the cache raises a KeyError .
def instance_size(self, key):
        """
        Return how many Mor objects are stored for the given instance.
        If the key is not in the cache, raises a KeyError.
        """
        with self._mor_lock:
            return len(self._mor[key])
def instance_size ( self , key ) : with self . _mor_lock : return len ( self . _mor [ key ] )