Equivalents of Ruby's "!" methods?

Fredrik Lundh fredrik at pythonware.com
Mon Aug 25 13:34:36 EDT 2008


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>




More information about the Python-list mailing list