R. David Murray <[email protected]> added the comment:
In fact, I find the proposed syntax *less* obvious than the slice syntax, for
sorted. IOW, I'd be -1 on adding these to sorted. The potentially useful case
is between
l[a:b] = sorted(l[a:b})
vs
l.sort(start=a, stop=b)
where the interesting bit is that the sort takes place in place (no memory
copy).
I still find the slice syntax clearer :), and it's not clear that the savings
of the memory copy for a few programs that use it is worth the added complexity
for all other programs. So I concur with Raymond's rejection.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1491804>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com