En Tue, 29 Apr 2008 10:32:46 -0300, Roy Smith <[EMAIL PROTECTED]> escribió:

What you want to do is look at the reversed() function.  Not only does it
return something (other than Null), but it is much faster because it
doesn't have to store the reversed list anywhere.  What it returns is an
iterator which walks the list in reverse order. Same with list.sort() vs. the global sorted().

No, sorted() returns a -newly created- true list, not an iterator. Its argument may be any iterable, but the result is always a list.

--
Gabriel Genellina

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

Reply via email to