
March 1, 2017
7:41 p.m.
Stéfane Fermigier wrote:
Cf. https://martinfowler.com/bliki/CommandQuerySeparation.html
Python's convention is less extreme than this, since it only applies to methods that, under the conventions of some other languages, would return self to facilitate chaining. There's no rule against a mutating method returning some other value if that's convenient. -- Greg