>
> self.x = x if x is not None else []
> self.x = x otherwise []
I'm -1 on needing syntax for this, but if we're going to do it, this is
my favorite version I've seen so far. The usual caveats about adding a
keyword apply.
This particular formulation has the undesirable effect of putting the operands in an unintuitive order: the brain thinks, "use data if possible and use [] as a fallback," but the code puts the fallback before the preferred value.