The Python way is collections.defaultdict, which you provide a default value when creating the table (would be `@[]` in this case), and then you can just do `table[x].add y`.
It's convenient to have in the stdlib, but I don't think it's worth considering outside of a bigger tables revision (e.g. adding MultiTable as discussed).