![](https://secure.gravatar.com/avatar/bf0ee222dbef43f7743772df65fa8ac8.jpg?s=120&d=mm&r=g)
June 15, 2008
7:46 p.m.
On Sat, Jun 14, 2008 at 7:48 PM, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
I don't think that sorting is a frequent enough operation in general to justify having its own statement.
Agreed.
The main advantage is that it is impossible to make this mistake:
x = y.sort()
If you make that mistake, you find out about it very quickly, and you learn not to make it again.
Yes, but having .sort() return self would also solve this problem without anything as radical as introducing a new keyword and syntax. I'm not saying that this should be done, but I think this would be a much better alternative than the proposed sort syntax. Brandon