'Yield entry point objects from `group` matching `name`
If `name` is None, yields all entry points in `group` from all
distributions in the working set, otherwise only ones matching
both `group` and `name` are yielded (in distribution order).'

def iter_entry_points(self, group, name=None):

    for dist in self:
        entries = dist.get_entry_map(group)
        if (name is None):
            for ep in entries.values():
                (yield ep)
        elif (name in entries):
            (yield entries[name])
