From: Alan G I. <ai...@am...> - 2006-08-29 19:40:55
|
On Tue, 29 Aug 2006, Tim Hochberg apparently wrote:=20 > -0.5 from me if what we're talking about here is having=20 > mutating methods return self rather than None. Chaining=20 > stuff is pretty, but having methods that mutate self and=20 > return self looks like a source of elusive bugs to me.=20 I believe this reasoning was the basis of sort (method,=20 returns None) and sorted (function, returns new object) in Python. =20 I believe that was a long and divisive discussion ... Cheers, Alan Isaac |