solipsis at pitrou.net
Tue Sep 24 19:36:59 CEST 2013
On Tue, 24 Sep 2013 18:51:43 +0300
Ram Rachum <ram at rachum.com> wrote:
> I get your point. It's a nice idea. But I think it's slightly less elegant
> to create another dict. So I think it's almost as good as having a `.sort`
> method, but not quite as nice.
> (By the way, couldn't you make the same argument about `list.sort`?)
list.sort() sorts the list in-place, it doesn't reallocate a new vector
to replace the old one.
(AFAIR anyway, but I trust Tim and Raymond here (or was it Tim,
Tim, Raymond and Tim? :-)).
More information about the Python-ideas