On PEP 322 (ireverse)
Roy Smith
roy at panix.com
Wed Oct 29 12:10:16 EST 2003
More information about the Python-list mailing list
Wed Oct 29 12:10:16 EST 2003
- Previous message (by thread): On PEP 322 (ireverse)
- Next message (by thread): On PEP 322 (ireverse)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Terry Reedy" <tjreedy at udel.edu> wrote: > As I suggested elsewhere, make iter() the type object for iterator. > Then iter.reversed is closely parallel to list.sorted. I've got a question about list.sorted. I assume it's just a list that's initialized to have its elements sorted when it's created? We're not talking about some new magic container type which keeps its elements sorted all the time? In other words, I'm assuming that l = list.sorted ((1, 2, 5, 3)) l.append (4) print l will print [1, 2, 3, 5, 4], right?
- Previous message (by thread): On PEP 322 (ireverse)
- Next message (by thread): On PEP 322 (ireverse)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list