(self, item)
Called on a cost object and returns the number of actual cost values.

        Arguments:
           item (Cost): cost object
Called on a cost object and returns the number of actual cost values.
Called on a cost object and returns the number of actual cost values .
def recursive_multicost_len(self, item):
        """
        Called on a cost object and returns the number of actual cost values.

        Arguments:
           item (Cost): cost object
        """
        # compute number of costs nested in multicosts
        if type(item) == Multicost:
            return sum(self.recursive_multicost_len(subitem) for subitem in item.costs)
        else:
            return 1
def recursive_multicost_len ( self , item ) : # compute number of costs nested in multicosts if type ( item ) == Multicost : return sum ( self . recursive_multicost_len ( subitem ) for subitem in item . costs ) else : return 1