On Wed, Dec 26, 2018 at 01:06:04AM +0000, Alan Gauld via Tutor wrote: > In Smalltalk the default return value from > any method is self. In Python it is None. > > self allows chaining of methods, None does not.
You might be interested in this simple recipe for retrofitting method chaining onto any class: http://code.activestate.com/recipes/578770-method-chaining-or-cascading/ -- Steve _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor