I have a class (list of dicts) and I want it to sort itself:
dict
class Table(list): … def sort (self, in_col_name): self = Table(sorted(self,
Python is pass by value, always. This means that assigning to a parameter will never have an effect on the outside of the function. self is just the name you chose for one of the parameters.
self