def get_all_slots(cls):
    slots_iterator = (getattr(c, '__slots__', ()) for c in cls.__mro__)
    # `__slots__` might only be a single string,
    # so we need to put the strings into a tuple.
    slots_converted = ((slots,) if isinstance(slots, compat.base_type) else slots
                                for slots in slots_iterator)
    all_slots = set()
    all_slots.update(*slots_converted)
    return all_slots
Render a given template with any extra URL parameters in the context as
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/slots.py/get_all_slots--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/views/generic/simple.py/direct_to_template