I would do it in one assignment as well:

```Python
_CACHABLE_ELEMENT_NAMES = tuple((set(_pp_attribute_names(_header_defn(2))) |
                                 set(_pp_attribute_names(_header_defn(3)))) -
                                set(_NOCACHE_ELEMENT_NAMES))
```