What is a more Pythonic way of setting the value of multiple attributes?
something like this

def swap(prop):
    s = bpy.context.scene
    v = not getattr(s, prop)

    attributes = 'meshes lights cameras nurbs lattices empties texts bones surfaces metaballs fields'.split(' ')
    for attribute in attributes:
        setattr(s, attribute, not v if prop == attribute else v)


but achieving pythonic code is a quest for a different stack exchange site, like stack overflow