Boto (Python)- reversed bucket list?

The reason that you can't do a reverse of bucket.list() is because that method actually returns a generator rather than the actual list. This is much more efficient and also allows boto to handle all of the paging of results behind the scenes If you really want to reverse it you could collect all of the elements in a list and then reverse that: objs = obj for obj in self.bucket. List(PREFIX) objs.reverse() but if there are a lot of objects in the bucket this will be very inefficient.

The reason that you can't do a reverse of bucket.list() is because that method actually returns a generator rather than the actual list. This is much more efficient and also allows boto to handle all of the paging of results behind the scenes. If you really want to reverse it you could collect all of the elements in a list and then reverse that: objs = obj for obj in self.bucket.

List(PREFIX) objs.reverse() but if there are a lot of objects in the bucket this will be very inefficient.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions