So, imagine an item like so:
x = {"name":"blah",
"this_must_go":"obsolette",
"this_must_also_go":"unfixable",
"type":4}
and I have lets say a list of 200 of these x
es and I want to remove all this_must_go
and this_must_also_go
fields from all x
in the list, no exception. I prefer using list comprehension if possible. Is there a one-liner or neat syntax to achieve this?