Equivalents of Ruby's "!" methods?

Grzegorz Staniak gstaniak at wp.pl
Mon Aug 25 19:04:07 CEST 2008


On 25.08.2008, Terry Reedy <tjreedy at udel.edu> wroted:

> The newish sorted() and reversed() built-ins were meant to complement 
> list.sort and list.reverse, not replace them.

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

GS
-- 
Grzegorz Staniak <gstaniak _at_ wp [dot] pl>



More information about the Python-list mailing list