Grzegorz Staniak wrote:

BTW, is there a reason why sorted() on a list returns a list, while reversed() on the same list returns an iterator?

the algorithm required to sort a sequence is something entirely different from the algorithm required to loop over a sequence in reverse. we went through this a few days ago.

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to