When I try to unpack lists in a list comprehension:
[*parent.rules for parent in parents if hasattr(parent, "rules")]
I get the error:
SyntaxError: iterable unpacking cannot be used in comprehension
While I understand there are other ways to do this, this seems like the most obvious and Pythonic way. Why does Python disallow this behaviour?