def all_discrete(comp_dists):
    '\n    Determine if all distributions in comp_dists are discrete\n    '
    if isinstance(comp_dists, Distribution):
        return isinstance(comp_dists, Discrete)
    else:
        return all((isinstance(comp_dist, Discrete) for comp_dist in comp_dists))
Determine if all distributions in comp_dists are discrete
def all_discrete(comp_dists):
    '\n    \n    '
    if isinstance(comp_dists, Distribution):
        return isinstance(comp_dists, Discrete)
    else:
        return all((isinstance(comp_dist, Discrete) for comp_dist in comp_dists))