Comment Comment by pansa There is some convention in Python - for example `reverse` and `sort` are mutating, whereas `reversed` and `sorted` are not.However, I don’t know if there is a good reason why the mutating versions are methods and the non-mutating ones are standalone functions. parent pansa 6 years ago
However, I don’t know if there is a good reason why the mutating versions are methods and the non-mutating ones are standalone functions.